diff options
Diffstat (limited to 'test/test_ip4_vrf_multi_instance.py')
-rw-r--r-- | test/test_ip4_vrf_multi_instance.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_ip4_vrf_multi_instance.py b/test/test_ip4_vrf_multi_instance.py index 71532adf364..6d0f21d8bc9 100644 --- a/test/test_ip4_vrf_multi_instance.py +++ b/test/test_ip4_vrf_multi_instance.py @@ -66,6 +66,7 @@ import unittest import random import socket +import scapy.compat from scapy.packet import Raw from scapy.layers.l2 import Ether from scapy.layers.inet import IP, UDP, ARP @@ -344,7 +345,8 @@ class TestIp4VrfMultiInst(VppTestCase): if found: break for host in pg_if.remote_hosts: - if str(addr) == str(host.ip4): + if scapy.compat.raw(addr) == \ + scapy.compat.raw(host.ip4): vrf_count += 1 found = True break |