diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-07-03 15:44:46 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-07-03 15:44:46 +0300 |
| commit | dc3b2a6cb4fb960fc6c04087700cd757a417584e (patch) | |
| tree | 3fe38534b3ff2b4881fc17a6ee411c477e5503d3 /tests/unit/modules | |
| parent | cb41d42f49351f3c1d297f9961c7fdb836ffa48d (diff) | |
| download | vyos.vyos-dc3b2a6cb4fb960fc6c04087700cd757a417584e.tar.gz vyos.vyos-dc3b2a6cb4fb960fc6c04087700cd757a417584e.zip | |
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
Diffstat (limited to 'tests/unit/modules')
| -rw-r--r-- | tests/unit/modules/network/vyos/fixtures/vyos_l3_interfaces_config.cfg | 2 | ||||
| -rw-r--r-- | tests/unit/modules/network/vyos/test_vyos_l3_interfaces.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/modules/network/vyos/fixtures/vyos_l3_interfaces_config.cfg b/tests/unit/modules/network/vyos/fixtures/vyos_l3_interfaces_config.cfg index 011b0ee7..8f9609cd 100644 --- a/tests/unit/modules/network/vyos/fixtures/vyos_l3_interfaces_config.cfg +++ b/tests/unit/modules/network/vyos/fixtures/vyos_l3_interfaces_config.cfg @@ -5,4 +5,4 @@ set interfaces ethernet eth2 address '2001:db8::10/32' set interfaces ethernet eth3 address '198.51.100.10/24' set interfaces ethernet eth3 vif 101 address '198.51.100.130/25' set interfaces ethernet eth3 vif 102 address '2001:db8:4000::3/34' -set interfaces loopback lo +set interfaces loopback 'lo' diff --git a/tests/unit/modules/network/vyos/test_vyos_l3_interfaces.py b/tests/unit/modules/network/vyos/test_vyos_l3_interfaces.py index 3db6296a..7932f63d 100644 --- a/tests/unit/modules/network/vyos/test_vyos_l3_interfaces.py +++ b/tests/unit/modules/network/vyos/test_vyos_l3_interfaces.py @@ -135,7 +135,7 @@ class TestVyosL3InterfacesModule(TestVyosModule): self.execute_module(changed=True, commands=commands) def test_vyos_l3_interfaces_overridden(self): - """Override: keep only eth2, delete all other interface stanzas included in the L3 facts.""" + """Override: keep only eth2; delete L3 addresses from all other interfaces.""" set_module_args( dict( config=[ |
