From 2b00dff809ab69a0944d94d2fc6408365a1b33a6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 15 May 2019 12:43:36 +0900 Subject: [PATCH] test-network: add a test for IPv4LLRoute= --- test/test-network/conf/25-route-static.network | 1 + test/test-network/systemd-networkd-tests.py | 1 + 2 files changed, 2 insertions(+) diff --git a/test/test-network/conf/25-route-static.network b/test/test-network/conf/25-route-static.network index 4d94ab92a87..9e12480a658 100644 --- a/test/test-network/conf/25-route-static.network +++ b/test/test-network/conf/25-route-static.network @@ -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 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index ab742d31f5a..9c665d9f931 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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') -- 2.47.3