#!/usr/bin/env python3 """Point SaaS tbl_routers at live WG 10.88.0.6 / ROS7. Keep empty API password as-is.""" from pathlib import Path import sys sys.path.insert(0, str(Path(__file__).resolve().parent)) import vps_ssh local = Path(__file__).resolve().parent / "_tmp_wo_hub_db_fix_remote.py" vps_ssh.put(str(local), "/tmp/wo_hub_db_fix.py") code, out = vps_ssh.run("python3 /tmp/wo_hub_db_fix.py") print("code", code) print(out) code, out = vps_ssh.run("ping -c 2 -W 3 10.88.0.6; timeout 5 bash -c 'echo >/dev/tcp/10.88.0.6/8728' && echo API_OPEN || echo API_FAIL") print(out)