diff options
author | Ole Troan <ot@cisco.com> | 2019-10-18 15:41:43 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-10-18 14:24:48 +0000 |
commit | 9e160f82beb57b5cc6fc833f370565a0508f9300 (patch) | |
tree | 1248a1ae34ee8d82e59f0e6631d97ebb4c8eab59 /src | |
parent | 2915649f2900e59c14914dc17aa17ff2fe7e1e50 (diff) |
map: python3 support in tests
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Icbe9ca3dc738c6575fe382740a1cc9d29a4a74ff
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/map/test/test_map.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/map/test/test_map.py b/src/plugins/map/test/test_map.py index 5549d9f0751..866706a085c 100644 --- a/src/plugins/map/test/test_map.py +++ b/src/plugins/map/test/test_map.py @@ -139,7 +139,7 @@ class TestMAP(VppTestCase): v4 = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / IP(src=self.pg0.remote_ip4, dst=self.pg0.remote_ip4) / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) rx = self.send_and_expect(self.pg0, v4*1, self.pg0) v4_reply = v4[1] v4_reply.ttl -= 1 @@ -152,7 +152,7 @@ class TestMAP(VppTestCase): v4 = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / IP(src=self.pg0.remote_ip4, dst='192.168.1.1') / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) self.send_and_assert_encapped_one(v4, "3000::1", map_translated_addr) @@ -162,7 +162,7 @@ class TestMAP(VppTestCase): v4 = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / IP(id=1, src=self.pg0.remote_ip4, dst='192.168.1.1') / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 1000)) + Raw(b'\xa5' * 1000)) frags = fragment_rfc791(v4, 400) frags.reverse() @@ -178,7 +178,7 @@ class TestMAP(VppTestCase): v6 = (Ether(dst=self.pg1.local_mac, src=self.pg1.remote_mac) / IPv6(src=self.pg1.remote_ip6, dst=self.pg1.remote_ip6) / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) rx = self.send_and_expect(self.pg1, v6*1, self.pg1) v6_reply = v6[1] v6_reply.hlim -= 1 @@ -193,7 +193,7 @@ class TestMAP(VppTestCase): IPv6(dst='3000::1', src=map_translated_addr) / IP(dst=self.pg0.remote_ip4, src='192.168.1.1') / UDP(sport=10000, dport=20000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) self.pg1.add_stream(p) @@ -212,7 +212,7 @@ class TestMAP(VppTestCase): # p = (IP(id=1, dst=self.pg0.remote_ip4, src='192.168.1.1') / UDP(sport=10000, dport=20000) / - Raw('\xa5' * 1500)) + Raw(b'\xa5' * 1500)) frags = fragment_rfc791(p, 400) frags.reverse() @@ -332,7 +332,7 @@ class TestMAP(VppTestCase): v4 = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / IP(src=self.pg0.remote_ip4, dst=self.pg0.remote_ip4) / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) rx = self.send_and_expect(self.pg0, v4*1, self.pg0) v4_reply = v4[1] v4_reply.ttl -= 1 @@ -342,7 +342,7 @@ class TestMAP(VppTestCase): v6 = (Ether(dst=self.pg1.local_mac, src=self.pg1.remote_mac) / IPv6(src=self.pg1.remote_ip6, dst=self.pg1.remote_ip6) / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 100)) + Raw(b'\xa5' * 100)) rx = self.send_and_expect(self.pg1, v6*1, self.pg1) v6_reply = v6[1] v6_reply.hlim -= 1 |