def _send_update_port_statuses(self, port_ids, status):
if not port_ids:<EOL><INDENT>return<EOL><DEDENT>MAX_PORTS_IN_BATCH = <NUM_LIT:50><EOL>list_chunks_ports = [port_ids[i:i + MAX_PORTS_IN_BATCH]<EOL>for i in six.moves.range(<NUM_LIT:0>, len(port_ids), MAX_PORTS_IN_BATCH)]<EOL>for chunk_ports in list_chunks_ports:<EOL><INDENT>self.plugin_rpc.send_update_port_statuses(self.context,<EOL>chunk_ports, status)<EOL><DEDENT>
Sends update notifications to set the operational status of the
        list of router ports provided. To make each notification doesn't exceed
        the RPC length, each message contains a maximum of MAX_PORTS_IN_BATCH
        port ids.

        :param port_ids: List of ports to update the status
        :param status: operational status to update
                       (ex: bc.constants.PORT_STATUS_ACTIVE)