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

Function net_identity

network_diagnostics.py:1987–1989  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1985 v4.append(m.group(1))
1986 v6 = []
1987 res6 = _run(['ip', '-o', '-6', 'addr', 'show', 'dev', iface], timeout=5)
1988 for line in res6['out'].splitlines():
1989 m = re.search(r'inet6 (\S+)', line)
1990 if m:
1991 v6.append(m.group(1))
1992 return v4, v6

Callers

nothing calls this directly

Calls 2

_logFunction · 0.85
do_network_identityFunction · 0.85

Tested by

no test coverage detected