MCPcopy Create free account
hub / github.com/FDio/vpp / setUpNetNS

Method setUpNetNS

test/test_linux_cp.py:625–643  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

623
624 @classmethod
625 def setUpNetNS(cls):
626 # The namespace must be set up before VPP starts
627 cls.ns_history_name = (
628 f"{config.tmp_dir}/{get_testcase_dirname(cls.__name__)}/history_ns.txt"
629 )
630 delete_all_namespaces(cls.ns_history_name)
631
632 cls.ns_name = create_namespace(cls.ns_history_name)
633 cls.vpp_cmdline.extend(
634 [
635 "linux-cp",
636 "{",
637 "default",
638 "netns",
639 cls.ns_name,
640 "lcp-sync",
641 "}",
642 ]
643 )
644
645 @classmethod
646 def attach_vpp(cls):

Callers 2

attach_vppMethod · 0.80
run_vppMethod · 0.80

Calls 3

get_testcase_dirnameFunction · 0.90
delete_all_namespacesFunction · 0.90
create_namespaceFunction · 0.90

Tested by

no test coverage detected