aboutsummaryrefslogtreecommitdiff
path: root/tests/atf_python/sys/net/vnet.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/atf_python/sys/net/vnet.py')
-rw-r--r--tests/atf_python/sys/net/vnet.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py
index 67fe15fff69c..68c8ce4e0cba 100644
--- a/tests/atf_python/sys/net/vnet.py
+++ b/tests/atf_python/sys/net/vnet.py
@@ -134,7 +134,7 @@ class VnetInterface(object):
self.run_cmd(cmd)
def enable_ipv6(self):
- cmd = "/usr/sbin/ndp -i {} -disabled".format(self.name)
+ cmd = "/usr/sbin/ndp -i {} -- -disabled".format(self.name)
self.run_cmd(cmd)
def has_tentative(self) -> bool:
@@ -334,6 +334,10 @@ class VnetTestTemplate(BaseTest):
NEED_ROOT: bool = True
TOPOLOGY = {}
+ def _require_default_modules(self):
+ libc.kldload("if_epair.ko")
+ self.require_module("if_epair")
+
def _get_vnet_handler(self, vnet_alias: str):
handler_name = "{}_handler".format(vnet_alias)
return getattr(self, handler_name, None)
@@ -451,6 +455,8 @@ class VnetTestTemplate(BaseTest):
def setup_method(self, _method):
"""Sets up all the required topology and handlers for the given test"""
super().setup_method(_method)
+ self._require_default_modules()
+
# TestIP6Output.test_output6_pktinfo[ipandif]
topology_id = get_topology_id(self.test_id)
topology = self.TOPOLOGY