def port_connect(self, callback=None, port_id=None, peer_node_id=None, peer_port_id=None, peer_actor_id=None, peer_port_name=None, peer_port_dir=None, tunnel=None):
        if tunnel:
            msg = {'cmd': 'PORT_CONNECT', 'port_id': port_id, 'peer_actor_id': peer_actor_id, 'peer_port_name': peer_port_name, 'peer_port_id': peer_port_id, 'peer_port_dir': peer_port_dir, 'tunnel_id':tunnel.id}
            self.network.links[peer_node_id].send_with_reply(callback, msg)
        else:
            raise NotImplementedError()
getrandbits(k) -> x.  Generates a long int with k random bits.
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py/CalvinProto.port_connect--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/random.py/SystemRandom.getrandbits