summaryrefslogtreecommitdiffstats
path: root/test/test-network/conf/25-dhcp-client-allow-list.network
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test-network/conf/25-dhcp-client-allow-list.network12
-rw-r--r--test/test-network/conf/25-dhcp-client-allow-list.network.d/00-allow-list.conf5
-rw-r--r--test/test-network/conf/25-dhcp-client-allow-list.network.d/10-deny-list.conf4
3 files changed, 21 insertions, 0 deletions
diff --git a/test/test-network/conf/25-dhcp-client-allow-list.network b/test/test-network/conf/25-dhcp-client-allow-list.network
new file mode 100644
index 0000000..904e18a
--- /dev/null
+++ b/test/test-network/conf/25-dhcp-client-allow-list.network
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Match]
+Name=veth99
+
+[Network]
+DHCP=ipv4
+IPv6AcceptRA=false
+
+[DHCPv4]
+# DenyList= will be ignored
+AllowList=192.168.6.0/24
+DenyList=192.168.5.0/24
diff --git a/test/test-network/conf/25-dhcp-client-allow-list.network.d/00-allow-list.conf b/test/test-network/conf/25-dhcp-client-allow-list.network.d/00-allow-list.conf
new file mode 100644
index 0000000..9204d14
--- /dev/null
+++ b/test/test-network/conf/25-dhcp-client-allow-list.network.d/00-allow-list.conf
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[DHCPv4]
+# test without prefix length
+AllowList=
+AllowList=192.168.6.1
diff --git a/test/test-network/conf/25-dhcp-client-allow-list.network.d/10-deny-list.conf b/test/test-network/conf/25-dhcp-client-allow-list.network.d/10-deny-list.conf
new file mode 100644
index 0000000..0c15d23
--- /dev/null
+++ b/test/test-network/conf/25-dhcp-client-allow-list.network.d/10-deny-list.conf
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[DHCPv4]
+# Unset AllowList= to make DenyList= will be used.
+AllowList=