diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-03-07 17:55:33 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-03-11 09:20:04 +0000 |
commit | 22ab6f7cbb0f6139302aa6ca9f0c96dba17a37a7 (patch) | |
tree | 8995c48ce73519b8adc0c2b484e7a5eee66c28ff /test/test_ip4.py | |
parent | eb9a27f247e521a80ce5a3ab31b1e3a483afefab (diff) |
VPP-1508: Tests: Fix vpp_api struct.error under py3.
Fix struct.error: expected bytes object got <class 'str'>
Change-Id: I837ae6e97e44c789a9372677151b157956525334
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_ip4.py')
-rw-r--r-- | test/test_ip4.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ip4.py b/test/test_ip4.py index 57005f79355..ab733ac1bb6 100644 --- a/test/test_ip4.py +++ b/test/test_ip4.py @@ -1146,7 +1146,7 @@ class TestIPPunt(VppTestCase): # # add a policer # - policer = self.vapi.policer_add_del("ip4-punt", 400, 0, 10, 0, + policer = self.vapi.policer_add_del(b"ip4-punt", 400, 0, 10, 0, rate_type=1) self.vapi.ip_punt_police(policer.policer_index) @@ -1167,7 +1167,7 @@ class TestIPPunt(VppTestCase): # remove the poilcer. back to full rx # self.vapi.ip_punt_police(policer.policer_index, is_add=0) - self.vapi.policer_add_del("ip4-punt", 400, 0, 10, 0, + self.vapi.policer_add_del(b"ip4-punt", 400, 0, 10, 0, rate_type=1, is_add=0) self.send_and_expect(self.pg0, pkts, self.pg1) |