Files
Mikrotik-MCP/data/snapshots/router-utama_interface_20260125_142646.json
wartana 1dccec3949 feat: add get_vlans, get_gateway_interfaces tools and billing config fallback
- Add get_vlans tool to filter interfaces by type=vlan
- Add get_gateway_interfaces tool to identify gateway interfaces from routes
- Add fallback to billing-mcp/config.json when router not in devices.json
- Update .gitignore to exclude venv, pycache, snapshots
2026-02-03 00:14:23 +08:00

432 lines
9.7 KiB
JSON

[
{
".id": "*D",
"actual-mtu": "1500",
"default-name": "ether1",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "ether1",
"running": "true",
"rx-byte": "91041664254",
"rx-drop": "245",
"rx-error": "0",
"rx-packet": "115470345",
"tx-byte": "90875304042",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "115074252",
"tx-queue-drop": "138182",
"type": "ether",
"vrf": "main"
},
{
".id": "*11",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:35:19",
"link-downs": "0",
"mac-address": "FE:2A:A2:A8:07:99",
"mtu": "1500",
"name": "aw",
"running": "true",
"rx-byte": "20476040",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "64049",
"tx-byte": "13261397",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "76878",
"tx-queue-drop": "0",
"type": "ovpn-out",
"vrf": "main"
},
{
".id": "*3",
"actual-mtu": "1500",
"disabled": "false",
"dynamic": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"l2mtu": "65535",
"last-link-up-time": "2026-01-24 10:34:26",
"link-downs": "0",
"mac-address": "06:BF:0F:2D:B7:89",
"mtu": "auto",
"name": "bridge-docker",
"running": "true",
"rx-byte": "28153817",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "77430",
"tx-byte": "39848242",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "95674",
"tx-queue-drop": "0",
"type": "bridge",
"vrf": "main"
},
{
".id": "*17",
"actual-mtu": "1500",
"disabled": "false",
"dynamic": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"l2mtu": "65535",
"last-link-up-time": "2026-01-24 10:34:26",
"link-downs": "0",
"mac-address": "6C:86:93:D8:57:4F",
"mtu": "auto",
"name": "dockers",
"running": "true",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "1725906",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "11597",
"tx-queue-drop": "0",
"type": "bridge",
"vrf": "main"
},
{
".id": "*1",
"actual-mtu": "65536",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:26",
"link-downs": "0",
"mac-address": "00:00:00:00:00:00",
"mtu": "65536",
"name": "lo",
"running": "true",
"rx-byte": "2616390",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "31717",
"tx-byte": "2616390",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "31717",
"tx-queue-drop": "0",
"type": "loopback",
"vrf": "main"
},
{
".id": "*12",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:35:19",
"link-downs": "0",
"mac-address": "FE:C3:D0:10:99:8C",
"mtu": "1500",
"name": "ovpn-import1759218976",
"running": "true",
"rx-byte": "160592",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "9983",
"tx-byte": "1935800",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "17336",
"tx-queue-drop": "0",
"type": "ovpn-out",
"vrf": "main"
},
{
".id": "*C",
"disabled": "true",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"link-downs": "0",
"name": "tunnel",
"running": "false",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "0",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "0",
"tx-queue-drop": "0",
"type": "l2tp-out",
"vrf": "main"
},
{
".id": "*16",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"link-downs": "0",
"mac-address": "6C:86:93:D8:57:4F",
"mtu": "1500",
"name": "veth-ha",
"running": "false",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "0",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "0",
"tx-queue-drop": "0",
"type": "veth",
"vrf": "main"
},
{
".id": "*4",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"link-downs": "0",
"mac-address": "08:02:FF:60:C8:7E",
"mtu": "1500",
"name": "veth1",
"running": "false",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "0",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "0",
"tx-queue-drop": "0",
"type": "veth",
"vrf": "main"
},
{
".id": "*5",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:45",
"link-downs": "0",
"mac-address": "00:C7:0C:4E:30:8D",
"mtu": "1500",
"name": "veth2",
"running": "true",
"rx-byte": "2966",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "41",
"slave": "true",
"tx-byte": "5660547",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "81788",
"tx-queue-drop": "0",
"type": "veth",
"vrf": "main"
},
{
".id": "*7",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "vlan04_CCTV",
"running": "true",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "2671084",
"tx-drop": "9",
"tx-error": "0",
"tx-packet": "30079",
"tx-queue-drop": "0",
"type": "vlan",
"vrf": "main"
},
{
".id": "*8",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "vlan07_IoT",
"running": "true",
"rx-byte": "0",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "0",
"tx-byte": "2929354",
"tx-drop": "6",
"tx-error": "0",
"tx-packet": "31649",
"tx-queue-drop": "0",
"type": "vlan",
"vrf": "main"
},
{
".id": "*9",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "vlan15_hs",
"running": "true",
"rx-byte": "4424674664",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "22588043",
"tx-byte": "57919005525",
"tx-drop": "52908",
"tx-error": "0",
"tx-packet": "49584717",
"tx-queue-drop": "0",
"type": "vlan",
"vrf": "main"
},
{
".id": "*A",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "vlan999_jujung",
"running": "true",
"rx-byte": "80296575528",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "72227775",
"tx-byte": "9166995203",
"tx-drop": "40769",
"tx-error": "0",
"tx-packet": "40302857",
"tx-queue-drop": "0",
"type": "vlan",
"vrf": "main"
},
{
".id": "*B",
"actual-mtu": "1500",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-up-time": "2026-01-24 10:34:38",
"link-downs": "0",
"mac-address": "C0:3F:D5:6E:EF:29",
"mtu": "1500",
"name": "vlan_100_proxmox",
"running": "true",
"rx-byte": "14407481",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "76937",
"tx-byte": "135411521",
"tx-drop": "142",
"tx-error": "0",
"tx-packet": "169397",
"tx-queue-drop": "0",
"type": "vlan",
"vrf": "main"
},
{
".id": "*13",
"disabled": "false",
"fp-rps-drop": "0",
"fp-rx-byte": "0",
"fp-rx-packet": "0",
"fp-tx-byte": "0",
"fp-tx-packet": "0",
"last-link-down-time": "2026-01-25 13:56:15",
"last-link-up-time": "2026-01-24 10:34:46",
"link-downs": "1",
"mac-address": "72:39:33:BD:E0:B5",
"mtu": "1500",
"name": "wa-bot",
"running": "false",
"rx-byte": "29235903",
"rx-drop": "0",
"rx-error": "0",
"rx-packet": "77401",
"tx-byte": "45277491",
"tx-drop": "0",
"tx-error": "0",
"tx-packet": "174399",
"tx-queue-drop": "0",
"type": "veth",
"vrf": "main"
}
]