]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: ignore tunnel devices automatically added by kernel
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 11:02:15 +0000 (12:02 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 13:04:32 +0000 (22:04 +0900)
Fixes #10934.

test/test-execute/exec-privatenetwork-yes.service

index ded8d5512636cbe4ac3cc0c919c9a862c8bb7a26..8f5cbadf0408aa7d37541289a4091c6693c44895 100644 (file)
@@ -2,6 +2,6 @@
 Description=Test for PrivateNetwork
 
 [Service]
-ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|(sit0|ip6tnl0|ip6gre0)@.*):"'
+ExecStart=/bin/sh -x -c '! ip link | grep -E "^[0-9]+: " | grep -Ev ": (lo|(erspan|gre|gretap|ip_vti|ip6_vti|ip6gre|ip6tnl|sit|tunl)0@.*):"'
 Type=oneshot
 PrivateNetwork=yes