()
| 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') |