From e507d0867326782bf93ed703ca877ca31dead2d6 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Wed, 24 Jun 2020 11:26:48 +0100 Subject: dictconfig: T2637: identify sub-interfaces (vif) to delete --- src/conf_mode/interfaces-ethernet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/conf_mode/interfaces-ethernet.py') diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py index 8d657acba..8b895c4d2 100755 --- a/src/conf_mode/interfaces-ethernet.py +++ b/src/conf_mode/interfaces-ethernet.py @@ -187,6 +187,9 @@ def generate(eth): def apply(eth): e = EthernetIf(eth['intf']) if eth['deleted']: + # apply all vlans to interface (they need removing too) + apply_all_vlans(e, eth) + # delete interface e.remove() else: @@ -304,7 +307,6 @@ def apply(eth): # apply all vlans to interface apply_all_vlans(e, eth) - return None if __name__ == '__main__': try: -- cgit v1.2.3