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>
This commit is contained in:

committed by
Ole Trøan

parent
eb9a27f247
commit
22ab6f7cbb
@ -103,9 +103,9 @@ class VCLTestCase(VppTestCase):
|
||||
table_id += 1
|
||||
|
||||
# Configure namespaces
|
||||
self.vapi.app_namespace_add_del(namespace_id="1", secret=1234,
|
||||
self.vapi.app_namespace_add_del(namespace_id=b"1", secret=1234,
|
||||
sw_if_index=self.loop0.sw_if_index)
|
||||
self.vapi.app_namespace_add_del(namespace_id="2", secret=5678,
|
||||
self.vapi.app_namespace_add_del(namespace_id=b"2", secret=5678,
|
||||
sw_if_index=self.loop1.sw_if_index)
|
||||
|
||||
# Add inter-table routes
|
||||
@ -146,9 +146,9 @@ class VCLTestCase(VppTestCase):
|
||||
table_id += 1
|
||||
|
||||
# Configure namespaces
|
||||
self.vapi.app_namespace_add_del(namespace_id="1", secret=1234,
|
||||
self.vapi.app_namespace_add_del(namespace_id=b"1", secret=1234,
|
||||
sw_if_index=self.loop0.sw_if_index)
|
||||
self.vapi.app_namespace_add_del(namespace_id="2", secret=5678,
|
||||
self.vapi.app_namespace_add_del(namespace_id=b"2", secret=5678,
|
||||
sw_if_index=self.loop1.sw_if_index)
|
||||
|
||||
# Add inter-table routes
|
||||
|
Reference in New Issue
Block a user