def _translate_interface_attachment_view(port_info):
 return {'net_id': port_info['network_id'], 'port_id': port_info['id'], 'mac_addr': port_info['mac_address'], 'port_state': port_info['status'], 'fixed_ips': port_info.get('fixed_ips', None)}

def _translate_interface_attachment_view ( port_info ) : return { 'net_id' : port_info [ 'network_id' ] , 'port_id' : port_info [ 'id' ] , 'mac_addr' : port_info [ 'mac_address' ] , 'port_state' : port_info [ 'status' ] , 'fixed_ips' : port_info . get ( 'fixed_ips' , None ) }
maps keys for interface attachment details view .