diff options
Diffstat (limited to 'plugins/module_utils')
| -rw-r--r-- | plugins/module_utils/network/vyos/config/l3_interfaces/l3_interfaces.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/module_utils/network/vyos/config/l3_interfaces/l3_interfaces.py b/plugins/module_utils/network/vyos/config/l3_interfaces/l3_interfaces.py index 2506abb5..f7b76af9 100644 --- a/plugins/module_utils/network/vyos/config/l3_interfaces/l3_interfaces.py +++ b/plugins/module_utils/network/vyos/config/l3_interfaces/l3_interfaces.py @@ -254,6 +254,16 @@ class L3_interfaces(ConfigBase): return commands def _state_deleted(self, want, have): + """The command generator when state is deleted + + Deletes only the L3 address attributes (base interface and VIFs) + owned by this module, never the interface subtree, so L2 settings + are preserved. + + :rtype: A list + :returns: the commands necessary to remove the current configuration + of the provided objects + """ commands = [] want_copy = deepcopy(remove_empties(want)) have_copy = deepcopy(have) |
