diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-03-10 10:04:23 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-03-11 08:11:16 +0000 |
commit | a7427ec6f86cbeba7594f98e41fecab291d66b73 (patch) | |
tree | a1fe195ee4ccdecd420cd908c0752a33ebf3aa19 /test/test_ip4_vrf_multi_instance.py | |
parent | 0f6602cb246894ea98253e16aae198094bf78694 (diff) |
VPP-1508: Use scapy.compat to manage packet level library differences.
Change-Id: Icdf6abc9e53d33b26fd1d531c7dda6be0bb9cb55
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
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 |