mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test-network: add basic tests for vxcan device
This commit is contained in:
parent
cab042b843
commit
f63b14d35e
6
test/test-network/conf/25-vxcan.netdev
Normal file
6
test/test-network/conf/25-vxcan.netdev
Normal file
@ -0,0 +1,6 @@
|
||||
[NetDev]
|
||||
Name=vxcan99
|
||||
Kind=vxcan
|
||||
|
||||
[VXCAN]
|
||||
Peer=vxcan-peer
|
@ -6,6 +6,8 @@ Name=macvtap99
|
||||
Name=veth99
|
||||
Name=veth-peer
|
||||
Name=vcan99
|
||||
Name=vxcan99
|
||||
Name=vxcan-peer
|
||||
Name=vrf99
|
||||
Name=geneve99
|
||||
Name=ipiptun99
|
||||
|
@ -265,6 +265,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
'vtitun97',
|
||||
'vtitun98',
|
||||
'vtitun99',
|
||||
'vxcan99',
|
||||
'vxlan99',
|
||||
'wg98',
|
||||
'wg99']
|
||||
@ -334,6 +335,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
'25-vti-tunnel-local-any.netdev',
|
||||
'25-vti-tunnel-remote-any.netdev',
|
||||
'25-vti-tunnel.netdev',
|
||||
'25-vxcan.netdev',
|
||||
'25-vxlan.netdev',
|
||||
'25-wireguard-23-peers.netdev',
|
||||
'25-wireguard-23-peers.network',
|
||||
@ -604,6 +606,13 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
|
||||
self.wait_online(['vcan99:carrier'])
|
||||
|
||||
@expectedFailureIfModuleIsNotAvailable('vxcan')
|
||||
def test_vxcan(self):
|
||||
self.copy_unit_to_networkd_unit_path('25-vxcan.netdev', 'netdev-link-local-addressing-yes.network')
|
||||
self.start_networkd(0)
|
||||
|
||||
self.wait_online(['vxcan99:carrier', 'vxcan-peer:carrier'])
|
||||
|
||||
@expectedFailureIfModuleIsNotAvailable('wireguard')
|
||||
def test_wireguard(self):
|
||||
self.copy_unit_to_networkd_unit_path('25-wireguard.netdev', '25-wireguard.network',
|
||||
|
Loading…
Reference in New Issue
Block a user