mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
tests/netlink: mark a test that requires tun(4)
(cherry picked from commit effa0f6c0aad54a07917af6986d71cd0a57223b8)
This commit is contained in:
parent
bcd9c0cfb6
commit
39775a21ad
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class TestRtNlRoute(NetlinkTestTemplate, SingleVnetTestTemplate):
|
|||
|
||||
@pytest.mark.timeout(5)
|
||||
def test_add_route6_ll_if_gw(self):
|
||||
self.require_module("if_tun")
|
||||
tun_ifname = IfaceFactory().create_iface("", "tun")[0].name
|
||||
tun_ifindex = socket.if_nametoindex(tun_ifname)
|
||||
|
||||
|
|
@ -68,6 +69,7 @@ class TestRtNlRoute(NetlinkTestTemplate, SingleVnetTestTemplate):
|
|||
|
||||
@pytest.mark.timeout(5)
|
||||
def test_add_route4_ll_if_gw(self):
|
||||
self.require_module("if_tun")
|
||||
tun_ifname = IfaceFactory().create_iface("", "tun")[0].name
|
||||
tun_ifindex = socket.if_nametoindex(tun_ifname)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue