]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: support the case that the default config files are not installed yet 21625/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 00:47:46 +0000 (09:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 11:33:20 +0000 (20:33 +0900)
test/test-network/conf/80-6rd-tunnel.network [new file with mode: 0644]
test/test-network/systemd-networkd-tests.py

diff --git a/test/test-network/conf/80-6rd-tunnel.network b/test/test-network/conf/80-6rd-tunnel.network
new file mode 100644 (file)
index 0000000..2e479eb
--- /dev/null
@@ -0,0 +1,18 @@
+#  SPDX-License-Identifier: LGPL-2.1-or-later
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+# This network file matches 6rd-* SIT devices which is automatically created by
+# systemd-networkd when DHCPv4 6RD option is received.
+
+[Match]
+Name=6rd-*
+Type=sit
+
+[Network]
+DHCPPrefixDelegation=yes
index 57acd27f8496d8374afd34bced209b96df20231e..68cdad30ac5db9fd1d262645e083736f97fa5835 100755 (executable)
@@ -5012,6 +5012,7 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities):
         '25-veth.netdev',
         '25-veth-downstream-veth97.netdev',
         '25-veth-downstream-veth98.netdev',
+        '80-6rd-tunnel.network',
         'dhcp-pd-downstream-dummy97.network',
         'dhcp-pd-downstream-dummy98.network',
         'dhcp-pd-downstream-dummy99.network',
@@ -5238,7 +5239,8 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities):
                                         '11-dummy.netdev', 'dhcp-pd-downstream-test1.network',
                                         'dhcp-pd-downstream-dummy97.network',
                                         '12-dummy.netdev', 'dhcp-pd-downstream-dummy98.network',
-                                        '13-dummy.netdev', 'dhcp-pd-downstream-dummy99.network')
+                                        '13-dummy.netdev', 'dhcp-pd-downstream-dummy99.network',
+                                        '80-6rd-tunnel.network')
 
         start_networkd()
         self.wait_online(['veth-peer:routable'])