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

Function _parse_ipinfo_org

network_diagnostics.py:919–927  ·  view source on GitHub ↗

ipinfo.io returns org as 'AS3301 Telia Company AB'. Split the leading ASN from the ISP/org name.

(org)

Source from the content-addressed store, hash-verified

917 'interface': iface,
918 'reasons': [('no default gateway via %s — nothing to check' % iface)
919 if iface else 'no default gateway on this host — nothing to check'],
920 'impersonators': [], 'neighbor_count': 0}
921
922 gw_mac = _neigh_mac(gw)
923 reasons = []
924 verdict = 'clean'
925 learned = False
926 with _arp_baseline_lock:
927 baseline = _arp_baseline_load()
928 gws = baseline.setdefault('gateways', {})
929 base_mac = gws.get(gw)
930 fhrp_pins = baseline.get('fhrp_gateways') or {}

Callers 1

_isp_lookup_ifaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected