Searched refs:parse_ethtool (Results 1 – 2 of 2) sorted by relevance
/external/autotest/client/bin/net/ |
D | net_utils.py | 148 def parse_ethtool(self, field, match, option='', next_field=''): member in network_interface 197 result = self.parse_ethtool('Supported link modes', '.*', 203 result = self.parse_ethtool('Advertised link modes', '.*', 209 result = self.parse_ethtool('Advertised auto-negotiation', 215 return int(self.parse_ethtool('Speed', '\d+')) 219 result = self.parse_ethtool('Duplex', 'Full|Half') 224 result = self.parse_ethtool('Auto-negotiation', 'on|off') 229 return self.parse_ethtool('Wake-on', '\w+') 233 result = self.parse_ethtool('rx-checksumming', 'on|off', '-k') 238 result = self.parse_ethtool('tx-checksumming', 'on|off', '-k') [all …]
|
D | net_utils_unittest.py | 193 self.assertEquals(mock_netif.parse_ethtool('field', 'some|match'), 199 self.assertEquals(mock_netif.parse_ethtool('field', 203 self.assertEquals(mock_netif.parse_ethtool('field',
|