]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add a test for IPv4LLRoute= 12496/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 May 2019 03:43:36 +0000 (12:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 May 2019 03:44:30 +0000 (12:44 +0900)
test/test-network/conf/25-route-static.network
test/test-network/systemd-networkd-tests.py

index 4d94ab92a870d8af48e9e4d66e0b58920b76a2b0..9e12480a658dd48761e0e6a9852472382077b805 100644 (file)
@@ -6,6 +6,7 @@ IPv6AcceptRA=no
 Address=2001:1234:5:8f63::1/128
 Address=149.10.124.58/28
 DefaultRouteOnDevice=yes
+IPv4LLRoute=yes
 
 [Route]
 Destination=2001:1234:5:8fff:ff:ff:ff:ff/128
index ab742d31f5ab5a97521814e8321dc92501ca707d..9c665d9f93127d4bd8eb7f3c0972a7a773e726f2 100755 (executable)
@@ -1203,6 +1203,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, '149.10.124.48/28 proto kernel scope link src 149.10.124.58')
         self.assertRegex(output, '149.10.124.64 proto static scope link')
+        self.assertRegex(output, '169.254.0.0/16 proto static scope link metric 2048')
         self.assertRegex(output, '192.168.1.1 proto static initcwnd 20')
         self.assertRegex(output, '192.168.1.2 proto static initrwnd 30')