Created
November 14, 2020 12:25
-
-
Save Mic92/019bb8e1950c82c894bd5ace705c7486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/test-network/conf/25-tun.network b/test/test-network/conf/25-tun.network | |
new file mode 100644 | |
index 0000000000..bbfba362b3 | |
--- /dev/null | |
+++ b/test/test-network/conf/25-tun.network | |
@@ -0,0 +1,5 @@ | |
+[Match] | |
+Name=tun99 | |
+ | |
+[Network] | |
+Address=fe80::1 | |
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py | |
index 1062f93e55..82d50f3f2f 100755 | |
--- a/test/test-network/systemd-networkd-tests.py | |
+++ b/test/test-network/systemd-networkd-tests.py | |
@@ -1160,15 +1160,20 @@ def test_veth(self): | |
def test_tun(self): | |
copy_unit_to_networkd_unit_path('25-tun.netdev') | |
+ copy_unit_to_networkd_unit_path('25-tun.network') | |
start_networkd() | |
- self.wait_online(['tun99:off'], setup_state='unmanaged') | |
+ self.wait_online(['tun99:routable'], setup_state='managed') | |
output = check_output('ip -d link show tun99') | |
print(output) | |
# Old ip command does not support IFF_ flags | |
self.assertRegex(output, 'tun (type tun pi on vnet_hdr on multi_queue|addrgenmode) ') | |
+ output = check_output('ip -6 addr show tun99') | |
+ print(output) | |
+ self.assertRegex(output, 'inet6 fe80::1') | |
+ | |
def test_tap(self): | |
copy_unit_to_networkd_unit_path('25-tap.netdev') | |
start_networkd() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment