From dc3b2a6cb4fb960fc6c04087700cd757a417584e Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Fri, 3 Jul 2026 15:44:46 +0300 Subject: T8516: restore _state_deleted docstring, align test docstring and fixture - restore the _state_deleted docstring lost in the L2-safeguard change, now documenting the address-only delete semantics - overridden test docstring said "delete interface stanzas" but the module now emits address-only deletes; align wording - quote loopback interface name in fixture for consistency with vyos_interfaces_config.cfg --- .../network/vyos/config/l3_interfaces/l3_interfaces.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins') 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) -- cgit v1.2.3