1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

test-network: add more tests for LinkLocalAddressing=yes on various netdevs

This commit is contained in:
Yu Watanabe 2019-05-24 00:09:55 +09:00
parent 241836a87c
commit 0aefa2274d
8 changed files with 18 additions and 7 deletions

View File

@ -4,3 +4,4 @@ Name=vlan99
[Network]
IPv6AcceptRA=false
Address=192.168.23.5/24
LinkLocalAddressing=yes

View File

@ -4,3 +4,4 @@ Name=macsec99
[Network]
IPv6AcceptRA=no
Address=10.1.2.3/16
LinkLocalAddressing=yes

View File

@ -0,0 +1,3 @@
[NetDev]
Kind=netdevsim
Name=netdevsim99

View File

@ -6,4 +6,5 @@ MACAddress=00:50:56:c0:00:19
[Network]
IPv6AcceptRA=no
LinkLocalAddressing=yes
MACsec=macsec99

View File

@ -6,6 +6,9 @@ Name=macvtap99
Name=veth99
Name=veth-peer
Name=vcan99
Name=vrf99
Name=geneve99
Name=ipiptun99
[Network]
LinkLocalAddressing=yes

View File

@ -3,4 +3,5 @@ Name=test1
[Network]
IPv6AcceptRA=false
LinkLocalAddressing=yes
VXLAN=vxlan99

View File

@ -3,6 +3,7 @@ Name=vxlan99
[Network]
IPv6AcceptRA=no
LinkLocalAddressing=yes
[BridgeFDB]
MACAddress=00:11:22:33:44:55

View File

@ -456,7 +456,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
'21-vlan.network', '21-vlan-test1.network')
self.start_networkd(0)
self.wait_online(['test1', 'vlan99'])
self.wait_online(['test1:degraded', 'vlan99:routable'])
output = subprocess.check_output(['ip', '-d', 'link', 'show', 'test1'], universal_newlines=True).rstrip()
print(output)
@ -592,10 +592,10 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
@expectedFailureIfModuleIsNotAvailable('vrf')
def test_vrf(self):
self.copy_unit_to_networkd_unit_path('25-vrf.netdev')
self.copy_unit_to_networkd_unit_path('25-vrf.netdev', 'netdev-link-local-addressing-yes.network')
self.start_networkd(0)
self.wait_online(['vrf99:off'])
self.wait_online(['vrf99:carrier'])
@expectedFailureIfModuleIsNotAvailable('vcan')
def test_vcan(self):
@ -636,10 +636,10 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'CJQUtcS9emY2fLYqDlpSZiE/QJyHkPWr\+WHtZLZ90FU=')
def test_geneve(self):
self.copy_unit_to_networkd_unit_path('25-geneve.netdev')
self.copy_unit_to_networkd_unit_path('25-geneve.netdev', 'netdev-link-local-addressing-yes.network')
self.start_networkd(0)
self.wait_online(['geneve99:off'])
self.wait_online(['geneve99:degraded'])
output = subprocess.check_output(['ip', '-d', 'link', 'show', 'geneve99'], universal_newlines=True).rstrip()
print(output)
@ -873,10 +873,10 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'oseq')
def test_tunnel_independent(self):
self.copy_unit_to_networkd_unit_path('25-ipip-tunnel-independent.netdev')
self.copy_unit_to_networkd_unit_path('25-ipip-tunnel-independent.netdev', 'netdev-link-local-addressing-yes.network')
self.start_networkd(0)
self.wait_online(['ipiptun99:off'])
self.wait_online(['ipiptun99:carrier'])
@expectedFailureIfModuleIsNotAvailable('fou')
def test_fou(self):