dumper.py: address review comments.

Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
Dave Wallace
2022-04-26 17:55:32 -04:00
parent 71ea1823f4
commit 680ef9c8be

View File

@ -104,7 +104,7 @@ class Dumper(VPPApi):
iface.sw_if_index iface.sw_if_index
] ]
config["loopbacks"][iface.interface_name] = loop config["loopbacks"][iface.interface_name] = loop
elif iface.interface_dev_type in ["bond", "VXLAN", "dpdk", "virtio"]: elif iface.interface_dev_type in ["bond", "VXLAN", "dpdk", "virtio", "pg"]:
i = {"description": ""} i = {"description": ""}
if iface.sw_if_index in self.cache["lcps"]: if iface.sw_if_index in self.cache["lcps"]:
i["lcp"] = self.cache["lcps"][iface.sw_if_index].host_if_name i["lcp"] = self.cache["lcps"][iface.sw_if_index].host_if_name