

def tunnel_destroy(self, to_rt_uuid, tunnel_uuid):
    ' Destroy a tunnel (request side) '
    try:
        self.network.link_check(to_rt_uuid)
    except:
        raise Exception('ERROR_UNKNOWN_RUNTIME')
    try:
        tunnel = self.tunnels[to_rt_uuid][self]
    except:
        raise Exception('ERROR_UNKNOWN_TUNNEL')
        _log.analyze(self.rt_id, '+ ERROR_UNKNOWN_TUNNEL', None)
    msg = {
        'cmd': 'TUNNEL_DESTROY',
        'tunnel_id': tunnel.id,
    }
    self.network.links[to_rt_uuid].send_with_reply(CalvinCB(tunnel._destroy_ack), msg)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinProto.tunnel_destroy/VarMisuse@54/97 `tunnel_uuid`->`self`