summaryrefslogtreecommitdiffstats
path: root/test/test_bond.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-21 20:41:44 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-21 20:53:14 +0000
commitf6dee6c8bac17aadfa0378a6e00fdc448a3c3a6d (patch)
treeee760974d3d20fc3beaf4c1107a0a5f7115036d6 /test/test_bond.py
parent5e56f7511cf9387481d71214c41509cbd44f9a90 (diff)
bonding: tests support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I6cedb43af4437fdabce75f4a845629c5c2f96f6a
Diffstat (limited to 'test/test_bond.py')
-rw-r--r--test/test_bond.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bond.py b/test/test_bond.py
index 27da15c5ab5..f6a9b08426b 100644
--- a/test/test_bond.py
+++ b/test/test_bond.py
@@ -100,7 +100,7 @@ class TestBondInterface(VppTestCase):
p2 = (Ether(src=bond0_mac, dst=self.pg2.local_mac) /
IP(src=self.pg2.local_ip4, dst="10.10.10.12") /
UDP(sport=1235, dport=1235) /
- Raw('\xa5' * 100))
+ Raw(b'\xa5' * 100))
self.pg2.add_stream(p2)
# generate a packet from pg3 -> BondEthernet0 -> pg0
@@ -109,7 +109,7 @@ class TestBondInterface(VppTestCase):
p3 = (Ether(src=bond0_mac, dst=self.pg3.local_mac) /
IP(src=self.pg3.local_ip4, dst="10.10.10.11") /
UDP(sport=1234, dport=1234) /
- Raw('\xa5' * 100))
+ Raw(b'\xa5' * 100))
self.pg3.add_stream(p3)
self.pg_enable_capture(self.pg_interfaces)