def _copy_interfaces_info(interfaces):
 ret = {}
 for interface in interfaces:
  _interface_attrs_cpy = set()
  for attr in ATTRS:
   attr_dict = Hashabledict()
   attr_dict[attr] = repr(interfaces[interface][attr])
   _interface_attrs_cpy.add(attr_dict)
  ret[interface] = _interface_attrs_cpy
 return ret

def _copy_interfaces_info ( interfaces ) : ret = { } for interface in interfaces : _interface_attrs_cpy = set ( ) for attr in ATTRS : attr_dict = Hashabledict ( ) attr_dict [ attr ] = repr ( interfaces [ interface ] [ attr ] ) _interface_attrs_cpy . add ( attr_dict ) ret [ interface ] = _interface_attrs_cpy return ret
return a dictionary with a copy of each interface attributes in attrs .