summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-22 21:44:50 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-22 21:44:50 +0100
commitf241dbd8dd2d93f126159947a43fd8ee6424f0af (patch)
treeaa7f2bea94927cc2aa4c3a8dacf26270243a24b3 /smoketest/scripts
parentb61a06aa54657b9b128b0c6350b3cb861339ae9c (diff)
downloadvyos-1x-f241dbd8dd2d93f126159947a43fd8ee6424f0af.tar.gz
vyos-1x-f241dbd8dd2d93f126159947a43fd8ee6424f0af.zip
dhcp: T5787: Allow disabled duplicates on static-mapping (backport)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_dhcp-server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcp-server.py b/smoketest/scripts/cli/test_service_dhcp-server.py
index 9e8196d7a..24ae2f4e2 100755
--- a/smoketest/scripts/cli/test_service_dhcp-server.py
+++ b/smoketest/scripts/cli/test_service_dhcp-server.py
@@ -207,6 +207,8 @@ class TestServiceDHCPServer(VyOSUnitTestSHIM.TestCase):
self.cli_set(pool + ['static-mapping', 'dupe1', 'ip-address', inc_ip(subnet, 10)])
with self.assertRaises(ConfigSessionError):
self.cli_commit()
+ 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