From abbabcf2d060330da56f2e2d353aa5602a875de0 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sat, 26 Mar 2022 11:19:37 +0000 Subject: [PATCH] Skip deletion of TAP sub-ints belonging to LCP interfaces --- vpp/reconciler.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vpp/reconciler.py b/vpp/reconciler.py index 348ba78..9acbc36 100644 --- a/vpp/reconciler.py +++ b/vpp/reconciler.py @@ -306,7 +306,15 @@ class Reconciler(): vpp_iface = self.vpp.config['interface_names'][vpp_ifname] if vpp_iface.sub_number_of_tags != numtags: continue - ## TODO(pim) - if the sub-int is a TAP belonging to an LCP, it should be allowed + + ## Skip TAP interfaces belonging to an LCP + skip = False + for idx, lcp in self.vpp.config['lcps'].items(): + if vpp_iface.sw_if_index == lcp.host_sw_if_index: + skip = True + if skip: + continue + config_ifname, config_iface = interface.get_by_name(self.cfg, vpp_ifname) if not config_iface: self.prune_addresses(vpp_ifname, [])