mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test-network: add a basic test for ipvtap
This commit is contained in:
parent
69c317a07f
commit
956c8feca4
6
test/test-network/conf/25-ipvtap.netdev
Normal file
6
test/test-network/conf/25-ipvtap.netdev
Normal file
@ -0,0 +1,6 @@
|
||||
[NetDev]
|
||||
Name=ipvtap99
|
||||
Kind=ipvtap
|
||||
|
||||
[IPVLAN]
|
||||
Mode=L2
|
5
test/test-network/conf/ipvtap.network
Normal file
5
test/test-network/conf/ipvtap.network
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Name=test1
|
||||
|
||||
[Network]
|
||||
IPVTAP=ipvtap99
|
@ -222,6 +222,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
'ipiptun98',
|
||||
'ipiptun99',
|
||||
'ipvlan99',
|
||||
'ipvtap99',
|
||||
'isataptun99',
|
||||
'macvlan99',
|
||||
'macvtap99',
|
||||
@ -289,6 +290,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
'25-ipip-tunnel-remote-any.netdev',
|
||||
'25-ipip-tunnel.netdev',
|
||||
'25-ipvlan.netdev',
|
||||
'25-ipvtap.netdev',
|
||||
'25-isatap-tunnel.netdev',
|
||||
'25-macsec.key',
|
||||
'25-macsec.netdev',
|
||||
@ -324,6 +326,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
'ip6tnl.network',
|
||||
'ipip.network',
|
||||
'ipvlan.network',
|
||||
'ipvtap.network',
|
||||
'isatap.network',
|
||||
'macsec.network',
|
||||
'macvlan.network',
|
||||
@ -492,6 +495,13 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
|
||||
self.assertTrue(self.link_exits('ipvlan99'))
|
||||
|
||||
@expectedFailureIfModuleIsNotAvailable('ipvtap')
|
||||
def test_ipvtap(self):
|
||||
self.copy_unit_to_networkd_unit_path('25-ipvtap.netdev', '11-dummy.netdev', 'ipvtap.network')
|
||||
self.start_networkd()
|
||||
|
||||
self.assertTrue(self.link_exits('ipvtap99'))
|
||||
|
||||
def test_veth(self):
|
||||
self.copy_unit_to_networkd_unit_path('25-veth.netdev')
|
||||
self.start_networkd()
|
||||
|
Loading…
Reference in New Issue
Block a user