summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2017-10-27 21:28:07 +0200
committerJohn Lo <loj@cisco.com>2017-10-31 15:21:28 +0000
commit57938f63cc6743193c76d4fa89ad3250a5f76b56 (patch)
tree8588b7dc58dc96c8b8a3f1928985cd1870b96042 /test
parent756d5f76859cc6495dba16a583580d8e7d02a8e6 (diff)
l2fib: MAC: Fix uint64 to u8 byte array
As per proposal on the mailing list, this patch fixes the represntation of MAC address in VPP API calls for · L2fib_add_del · L2_fib_table_details Change-Id: I31e17efd1a6314cded69666e693cb8fc33158d02 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/vpp_papi_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 8e7235659be..d84012b2d2b 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -195,7 +195,7 @@ class VppPapiProvider(object):
return cli + "\n" + str(self.cli(cli))
def _convert_mac(self, mac):
- return int(mac.replace(":", ""), 16) << 16
+ return mac.replace(':', '').decode('hex')
def show_version(self):
""" """