test-network: support the case that the default config files are not installed yet

This commit is contained in:
Yu Watanabe 2021-12-06 09:47:46 +09:00
parent 84cc85f983
commit 42592d0ad4
2 changed files with 21 additions and 1 deletions

View file

@ -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

View file

@ -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'])