'Returns port_id (non-truncated uuid) if the port exists.
Otherwise returns None.
\'network\' is deprecated and has no effect'

def update_port_status(self, context, port_id, status, host=None, network=None):

    full = db.partial_port_ids_to_full_ids(context, [port_id])
    if (port_id not in full):
        return None
    port_id = full[port_id]
    return self.update_port_statuses(context, {port_id: status}, host)[port_id]
