summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-28 23:12:42 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-29 00:38:07 +0100
commit49a147e27dfaeeac9b2729a7a95d9d03c688a8aa (patch)
treebb478462280b76cf9dbce409aee9964d092a5121 /smoketest
parent4f311675217f1b983567565e4c500f8432f3b13f (diff)
downloadvyos-1x-49a147e27dfaeeac9b2729a7a95d9d03c688a8aa.tar.gz
vyos-1x-49a147e27dfaeeac9b2729a7a95d9d03c688a8aa.zip
dhcp-server: T6079: Disable duplicate static-mappings on migration
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/config-tests/basic-vyos5
-rw-r--r--smoketest/configs/basic-vyos8
2 files changed, 13 insertions, 0 deletions
diff --git a/smoketest/config-tests/basic-vyos b/smoketest/config-tests/basic-vyos
index 0bb68b75d..4671a30cf 100644
--- a/smoketest/config-tests/basic-vyos
+++ b/smoketest/config-tests/basic-vyos
@@ -30,6 +30,11 @@ set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 option dom
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 option name-server '192.168.0.1'
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 range LANDynamic start '192.168.0.20'
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 range LANDynamic stop '192.168.0.240'
+set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 static-mapping TEST1 ip-address '192.168.0.21'
+set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 static-mapping TEST1 mac '00:01:02:03:04:05'
+set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 static-mapping TEST2 disable
+set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 static-mapping TEST2 ip-address '192.168.0.22'
+set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 static-mapping TEST2 mac '00:01:02:03:04:05'
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 subnet-id '1'
set service dns forwarding allow-from '192.168.0.0/16'
set service dns forwarding cache-size '10000'
diff --git a/smoketest/configs/basic-vyos b/smoketest/configs/basic-vyos
index 76aa52039..6e23c79ef 100644
--- a/smoketest/configs/basic-vyos
+++ b/smoketest/configs/basic-vyos
@@ -89,6 +89,14 @@ service {
start 192.168.0.20
stop 192.168.0.240
}
+ static-mapping TEST1 {
+ ip-address 192.168.0.21
+ mac-address 00:01:02:03:04:05
+ }
+ static-mapping TEST2 {
+ ip-address 192.168.0.22
+ mac-address 00:01:02:03:04:05
+ }
}
}
}