Lines Matching +full:5 +full:ns
17 … def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5): argument
18 if ns:
19 comm = f'ip netns exec {ns} ' + comm
34 def process(self, terminate=True, fail=None, timeout=5):
55 def __init__(self, comm, shell=True, fail=None, ns=None, host=None, argument
58 shell=shell, fail=fail, ns=ns, host=host)
103 def tool(name, args, json=None, ns=None, host=None): argument
108 cmd_obj = cmd(cmd_str, ns=ns, host=host)
114 def ip(args, json=None, ns=None, host=None): argument
115 if ns:
116 args = f'-netns {ns} ' + args
120 def ethtool(args, json=None, ns=None, host=None): argument
121 return tool('ethtool', args, json=json, ns=ns, host=host)
140 def wait_port_listen(port, proto="tcp", ns=None, host=None, sleep=0.005, deadline=5): argument
149 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout