Remove redundant code - remove_interface() already removes TAP cache entries

This commit is contained in:
Pim van Pelt
2022-04-12 10:47:45 +00:00
parent 2b1287f4ef
commit 594e21afa4
2 changed files with 0 additions and 11 deletions

View File

@ -105,15 +105,6 @@ class VPPApi():
self.cache['l2xcs'].pop(iface.sw_if_index, None)
return True
def cache_remove_tap(self, ifname):
if not ifname in self.cache['interface_names']:
self.logger.warning("Trying to remove a TAP which is not in the config: %s" % ifname)
return False
iface = self.cache['interface_names'][ifname]
self.cache['taps'].pop(iface.sw_if_index, None)
return True
def cache_remove_vxlan_tunnel(self, ifname):
if not ifname in self.cache['interface_names']:
self.logger.warning("Trying to remove a VXLAN Tunnel which is not in the config: %s" % ifname)
@ -143,7 +134,6 @@ class VPPApi():
else:
del self.cache['bondethernet_members'][iface.sw_if_index]
self.cache['bondethernets'].pop(iface.sw_if_index, None)
self.cache['taps'].pop(iface.sw_if_index, None)
return True