MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / val

Function val

network_diagnostics.py:341–343  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

339 pinned to a NIC ping *that* link's gateway instead of the global one (which
340 may sit on a different segment entirely)."""
341 res = _run(['ip', 'route', 'show', 'default', 'dev', iface], timeout=5)
342 m = re.search(r'\bvia\s+(\S+)', res['out'] or '')
343 return m.group(1) if m else None
344
345
346def _egress_iface(preferred=None):

Callers 1

_parse_poeFunction · 0.85

Calls 2

_scalarFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected