def _make_segment_dict(record):
 return {'id': record.id, NETWORK_TYPE: record.network_type, PHYSICAL_NETWORK: record.physical_network, SEGMENTATION_ID: record.segmentation_id}

def _make_segment_dict ( record ) : return { 'id' : record . id , NETWORK_TYPE : record . network_type , PHYSICAL_NETWORK : record . physical_network , SEGMENTATION_ID : record . segmentation_id }
make a segment dictionary out of a db record .