D | test_offload.py | 136 def tool(name, args, flags, JSON=True, ns="", fail=True, include_stderr=False): argument 138 if JSON: 151 if JSON and len(stdout.strip()) != 0: 161 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): argument 162 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 166 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True) 178 _, maps = bpftool("map show", JSON=True, ns=ns, fail=True) 220 def ip(args, force=False, JSON=True, ns="", fail=True, include_stderr=False): argument 223 return tool("ip", args, {"json":"-j"}, JSON=JSON, ns=ns, 226 def tc(args, JSON=True, ns="", fail=True, include_stderr=False): argument [all …]
|