'Return the port UUID from the port metadata.'

def get_port_uuid_from_external_ids(self, port):

    try:
        return self.br_int.portid_from_external_ids(port['external_ids'])
    except RuntimeError as e:
        raise TrunkManagerError(error=e)
