socialwifi / RouterOS-api

Python API to RouterBoard devices produced by MikroTik.
MIT License
251 stars 100 forks source link

Poll all interfaces IPs in multi-WAN #96

Open Strykar opened 1 month ago

Strykar commented 1 month ago

My RB5009 receives two static and two dynamic IPv4 addresses. It also receives a /64 prefix and a single /128 IPv6 address.

How would I query to list all of these IPs? Could we get this info from the Detect Internet option under Interfaces?

Currently, the collector can only poll one - https://github.com/akpw/mktxp/blob/main/mktxp/collector/public_ip_collector.py I suspect the gateway being up but marked as inactive as part of a failover WAN may have something to do with this?