however to reach that it means that "if ip_lib.exists(dev):" on line 67 would have to be true.
for a dpdk port representor there should be no kernel netdev so that shoudl not be true.
def exists(self, device):
"""Return True if the device exists."""
with iproute.IPRoute() as ip:
idx = ip.link_lookup(ifname=device)
return True if idx else False
which is just delegating to iproute2
can you provide the output of ip like before and after booting a vm.
we should not see any netdev with the name of the dpdk reprsentor.
the traceback show that we are calling ip_lib.delete(dev, check_exit_code=[0, 2, 254]) on line 69
https:/ /github. com/openstack/ os-vif/ blob/7bad0f93bb da1238fa3d853ce 428f92d8606b360 /vif_plug_ ovs/linux_ net.py# L69
however to reach that it means that "if ip_lib. exists( dev):" on line 67 would have to be true.
for a dpdk port representor there should be no kernel netdev so that shoudl not be true.
that is calling https:/ /github. com/openstack/ os-vif/ blob/master/ os_vif/ internal/ ip/linux/ impl_pyroute2. py#L116- L120
def exists(self, device): lookup( ifname= device)
"""Return True if the device exists."""
with iproute.IPRoute() as ip:
idx = ip.link_
return True if idx else False
which is just delegating to iproute2
can you provide the output of ip like before and after booting a vm.
we should not see any netdev with the name of the dpdk reprsentor.