aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-18 15:26:25 +0200
committerNeale Ranns <nranns@cisco.com>2019-10-18 14:24:25 +0000
commit2915649f2900e59c14914dc17aa17ff2fe7e1e50 (patch)
tree867e9302c90dc743bfd91d23f228a7af2d596cfb
parent197573320de2c8760d79ce9c6195f9d294fdb215 (diff)
gso: python3 support in tests
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I166019cc69fd01cb43f1a3fad699f3d2e5ec5b19
-rw-r--r--test/test_gso.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_gso.py b/test/test_gso.py
index 017bb496a0f..f6a50a849b1 100644
--- a/test/test_gso.py
+++ b/test/test_gso.py
@@ -73,7 +73,7 @@ class TestGSO(VppTestCase):
IP(src=self.pg0.remote_ip4, dst=self.pg1.remote_ip4,
flags='DF') /
TCP(sport=1234, dport=1234) /
- Raw('\xa5' * 65200))
+ Raw(b'\xa5' * 65200))
rxs = self.send_and_expect(self.pg0, [p4], self.pg0)
@@ -102,7 +102,7 @@ class TestGSO(VppTestCase):
IP(src=self.pg2.remote_ip4, dst=self.pg3.remote_ip4,
flags='DF') /
TCP(sport=1234, dport=1234) /
- Raw('\xa5' * 65200))
+ Raw(b'\xa5' * 65200))
rxs = self.send_and_expect(self.pg2, [p41], self.pg3)
@@ -134,7 +134,7 @@ class TestGSO(VppTestCase):
IP(src=self.pg2.remote_ip4, dst=self.pg4.remote_ip4,
flags='DF') /
TCP(sport=1234, dport=1234) /
- Raw('\xa5' * 65200))
+ Raw(b'\xa5' * 65200))
rxs = self.send_and_expect(self.pg2, [p42], self.pg4, 45)
size = 0
@@ -158,7 +158,7 @@ class TestGSO(VppTestCase):
p43 = (Ether(src=self.pg2.remote_mac, dst=self.pg2.local_mac) /
IP(src=self.pg2.remote_ip4, dst=self.pg1.remote_ip4) /
TCP(sport=1234, dport=1234) /
- Raw('\xa5' * 65200))
+ Raw(b'\xa5' * 65200))
rxs = self.send_and_expect(self.pg2, [p43], self.pg1, 119)
size = 0
@@ -191,7 +191,7 @@ class TestGSO(VppTestCase):
p44 = (Ether(src=self.pg5.remote_mac, dst=self.pg5.local_mac) /
IP(src=self.pg5.remote_ip4, dst=self.pg1.remote_ip4) /
TCP(sport=1234, dport=1234) /
- Raw('\xa5' * 65200))
+ Raw(b'\xa5' * 65200))
self.pg1.enable_capture()
rxs = self.send_and_expect(self.pg5, [p44], self.pg1, 33)