aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-10-19 05:21:53 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2023-10-19 05:21:53 +0000
commit2d49ff1e21a74b8f641752b63a59dc3ef9e38ddc (patch)
tree607ffc00bdfd2c65c10c15ac81aa58abff412bdd /tests
parentf07b267d8cc87e88be3c78aa69504b5ebc6571ee (diff)
downloadsrc-2d49ff1e21a74b8f641752b63a59dc3ef9e38ddc.tar.gz
src-2d49ff1e21a74b8f641752b63a59dc3ef9e38ddc.zip
tests/netlink: mark the vlan(4) test with required module
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/netlink/test_rtnl_iface.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/netlink/test_rtnl_iface.py b/tests/sys/netlink/test_rtnl_iface.py
index d34e36ee8eef..41cb4d16de94 100644
--- a/tests/sys/netlink/test_rtnl_iface.py
+++ b/tests/sys/netlink/test_rtnl_iface.py
@@ -317,6 +317,7 @@ class TestRtNlIface(NetlinkTestTemplate, SingleVnetTestTemplate):
@pytest.mark.require_user("root")
def test_create_vlan_plain(self):
"""Creates 802.1Q VLAN interface in vlanXX and ifX fashion"""
+ self.require_module("if_vlan")
os_ifname = self.vnet.iface_alias_map["if1"].name
ifindex = socket.if_nametoindex(os_ifname)