def hwaddr_interfaces():
 ret = {}
 ifaces = _get_interfaces()
 for face in ifaces:
  if ('hwaddr' in ifaces[face]):
   ret[face] = ifaces[face]['hwaddr']
 return {'hwaddr_interfaces': ret}

def hwaddr_interfaces ( ) : ret = { } ifaces = _get_interfaces ( ) for face in ifaces : if ( 'hwaddr' in ifaces [ face ] ) : ret [ face ] = ifaces [ face ] [ 'hwaddr' ] return { 'hwaddr_interfaces' : ret }
provide a dict of the connected interfaces and their hw addresses .