Merge pull request #1 from dwallacelf/dumper-pg-if

vpp/dumper: add packet-generator interfaces
This commit is contained in:
Pim van Pelt
2022-04-27 10:07:53 +02:00
committed by GitHub

View File

@ -104,7 +104,13 @@ 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