summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-22 21:39:20 +0100
committerGitHub <noreply@github.com>2024-01-22 21:39:20 +0100
commite2d46861092dedc18f6bd3c37736ac87cbfb5132 (patch)
tree2bc10787e78f2f1a4198a683a347d81d0938c8d2 /smoketest/scripts/cli
parent90a50f8c21433188257766be1b971cae365a7a0c (diff)
parentc5b9edb2f76322e27c3eb0092e4e02d1591fef82 (diff)
downloadvyos-1x-e2d46861092dedc18f6bd3c37736ac87cbfb5132.tar.gz
vyos-1x-e2d46861092dedc18f6bd3c37736ac87cbfb5132.zip
Merge pull request #2879 from sarthurdev/T5787_disabled
dhcp: T5787: Allow disabled duplicates on static-mapping
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_service_dhcp-server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcp-server.py b/smoketest/scripts/cli/test_service_dhcp-server.py
index 849a411f1..194289567 100755
--- a/smoketest/scripts/cli/test_service_dhcp-server.py
+++ b/smoketest/scripts/cli/test_service_dhcp-server.py
@@ -387,6 +387,9 @@ class TestServiceDHCPServer(VyOSUnitTestSHIM.TestCase):
self.cli_set(pool + ['static-mapping', 'dupe1', 'ip-address', inc_ip(subnet, 10)])
with self.assertRaises(ConfigSessionError):
self.cli_commit()
+ # Should allow disabled duplicate
+ self.cli_set(pool + ['static-mapping', 'dupe1', 'disable'])
+ self.cli_commit()
self.cli_delete(pool + ['static-mapping', 'dupe1'])
# cannot have mappings with duplicate MAC addresses