From: Yu Watanabe Date: Wed, 10 Jul 2019 14:53:30 +0000 (+0900) Subject: test-network: add test for AssignToLoopback= setting X-Git-Tag: v243~277^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95082dbef5eaffbf3d41cfab113d75b46fa58851;p=platform%2Fupstream%2Fsystemd.git test-network: add test for AssignToLoopback= setting --- diff --git a/test/test-network/conf/25-ipip-tunnel-independent-loopback.netdev b/test/test-network/conf/25-ipip-tunnel-independent-loopback.netdev new file mode 100644 index 0000000..9ee26c9 --- /dev/null +++ b/test/test-network/conf/25-ipip-tunnel-independent-loopback.netdev @@ -0,0 +1,10 @@ +[NetDev] +Name=ipiptun99 +Kind=ipip +MTUBytes=1480 + +[Tunnel] +Local=192.168.223.238 +Remote=192.169.224.239 +Independent=true +AssignToLoopback=yes diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 92f1a5b..fc15927 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -559,6 +559,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): '25-ip6tnl-tunnel-local-any.netdev', '25-ip6tnl-tunnel.netdev', '25-ipip-tunnel-independent.netdev', + '25-ipip-tunnel-independent-loopback.netdev', '25-ipip-tunnel-local-any.netdev', '25-ipip-tunnel-remote-any.netdev', '25-ipip-tunnel.netdev', @@ -1130,6 +1131,12 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): wait_online(['ipiptun99:carrier']) + def test_tunnel_independent_loopback(self): + copy_unit_to_networkd_unit_path('25-ipip-tunnel-independent-loopback.netdev', 'netdev-link-local-addressing-yes.network') + start_networkd() + + wait_online(['ipiptun99:carrier']) + @expectedFailureIfModuleIsNotAvailable('fou') def test_fou(self): # The following redundant check is necessary for CentOS CI.