def show_ring(devname):
 try:
  ring = ethtool.get_ringparam(devname)
 except IOError:
  log.error('Ring parameters not supported on {0}'.format(devname))
  return 'Not supported'
 ret = {}
 for (key, value) in ring.items():
  ret[ethtool_ring_remap[key]] = ring[key]
 return ret

def show_ring ( devname ) : try : ring = ethtool . get_ringparam ( devname ) except IOError : log . error ( 'Ring parameters not supported on {0}' . format ( devname ) ) return 'Not supported' ret = { } for ( key , value ) in ring . items ( ) : ret [ ethtool_ring_remap [ key ] ] = ring [ key ] return ret
queries the specified network device for rx/tx ring parameter information cli example: .