From e6f271181b09dfdc143497b2b3e3c3dd5f867a13 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Fri, 15 Apr 2022 10:46:36 +0000 Subject: [PATCH] bugfix - only print MAC on PHYs, not sub-interfaces --- vpp/dumper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpp/dumper.py b/vpp/dumper.py index a0057c2..8da3859 100644 --- a/vpp/dumper.py +++ b/vpp/dumper.py @@ -75,7 +75,7 @@ class Dumper(VPPApi): if not self.cache['interfaces'][idx].flags & 1: # IF_STATUS_API_FLAG_ADMIN_UP i['state'] = 'down' - if iface.interface_dev_type == 'dpdk': + if iface.interface_dev_type == 'dpdk' and iface.sub_number_of_tags == 0: i['mac'] = str(iface.l2_address) if self.tap_is_lcp(iface.interface_name):