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

Function net_isp

network_diagnostics.py:2005–2008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2003 m = re.search(r'Speed:\s*(.+)', out)
2004 if m and 'Unknown' not in m.group(1):
2005 d['speed'] = m.group(1).strip()
2006 m = re.search(r'Duplex:\s*(.+)', out)
2007 if m and 'Unknown' not in m.group(1):
2008 d['duplex'] = m.group(1).strip()
2009 m = re.search(r'Auto-negotiation:\s*(\w+)', out)
2010 if m:
2011 d['autoneg'] = (m.group(1).strip().lower() == 'on')

Callers

nothing calls this directly

Calls 3

_logFunction · 0.85
do_ispFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected