summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-08-28 22:42:33 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-09-15 22:33:11 +0900
commit2aa7d367ec91518891f6100df562fbe240969105 (patch)
treee41a2422dd21e917f7051cf752fa2b2e0a0e8031 /test
parent9870c55ef5df8f079cd972b409ec59414869a256 (diff)
downloadsystemd-2aa7d367ec91518891f6100df562fbe240969105.tar.gz
systemd-2aa7d367ec91518891f6100df562fbe240969105.tar.bz2
systemd-2aa7d367ec91518891f6100df562fbe240969105.zip
network: do not create default route for ipv4 link local addressing
When nspawn container with private network starts, networkd creates the default route for the interface. The route may cause problem on the host side, and it can be created with DefaultRouteOnDevice= now. Hence, this makes networkd not create the route implicitly any more. Closes #13418.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 374d9cdefd..dd031de383 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -2892,7 +2892,6 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
output = check_output('ip route show vrf vrf99')
print(output)
self.assertRegex(output, 'default via 192.168.5.1 dev veth99 proto dhcp src 192.168.5.')
- self.assertRegex(output, 'default dev veth99 proto static scope link')
self.assertRegex(output, '169.254.0.0/16 dev veth99 proto kernel scope link src 169.254')
self.assertRegex(output, '192.168.5.0/24 dev veth99 proto kernel scope link src 192.168.5')
self.assertRegex(output, '192.168.5.0/24 via 192.168.5.5 dev veth99 proto dhcp')