def _stop_tunnel(self, instance_name):
    cluster = self._staroid.cluster().get(self.__ske)
    if (cluster == None):
        raise Exception("Can't get ske cluster")
    ns_api = self._staroid.namespace(cluster)
    ns_api.stop_tunnel(instance_name)
    ns_api.shell_stop(instance_name)
def _stop_tunnel(self, instance_name):
    cluster = self._staroid.cluster().get(self.__ske)
    if (cluster == None):
        raise Exception("Can't get ske cluster")
    ns_api = self._staroid.namespace(cluster)
    ns_api.stop_tunnel(instance_name)
    ns_api.shell_stop(instance_name)