Lines Matching refs:json
3 import json as _json
176 def tool(name, args, json=None, ns=None, host=None):
178 if json:
179 cmd_str += '--json '
182 if json:
187 def bpftool(args, json=None, ns=None, host=None):
188 return tool('bpftool', args, json=json, ns=ns, host=host)
191 def ip(args, json=None, ns=None, host=None):
194 return tool('ip', args, json=json, host=host)
197 def ethtool(args, json=None, ns=None, host=None):
198 return tool('ethtool', args, json=json, ns=ns, host=host)
201 def bpftrace(expr, json=None, ns=None, host=None, timeout=None):
203 Run bpftrace and return map data (if json=True).
212 # Throw in --quiet if json, otherwise the output has two objects
213 if json:
214 cmd_arr += ['-f', 'json', '-q']
219 if json: