Is it enough to check "port_uuid == nil_uuid()" etc in this function ?