If port_id is set, uuid should not be used, so net_id must be optional too