def show_driver(devname):
 try:
  module = ethtool.get_module(devname)
 except IOError:
  log.error('Driver information not implemented on {0}'.format(devname))
  return 'Not implemented'
 try:
  businfo = ethtool.get_businfo(devname)
 except IOError:
  log.error('Bus information no available on {0}'.format(devname))
  return 'Not available'
 ret = {'driver': module, 'bus_info': businfo}
 return ret

def show_driver ( devname ) : try : module = ethtool . get_module ( devname ) except IOError : log . error ( 'Driver information not implemented on {0}' . format ( devname ) ) return 'Not implemented' try : businfo = ethtool . get_businfo ( devname ) except IOError : log . error ( 'Bus information no available on {0}' . format ( devname ) ) return 'Not available' ret = { 'driver' : module , 'bus_info' : businfo } return ret
queries the specified network device for associated driver information cli example: .