'Get trunk metadata from OVS port.'

def _get_trunk_metadata(self, port):

    parent_port_id = self.trunk_manager.get_port_uuid_from_external_ids(port)
    trunk_id = port['external_ids'].get('trunk_id')
    subport_ids = jsonutils.loads(port['external_ids'].get('subport_ids', '[]'))
    return (parent_port_id, trunk_id, subport_ids)
