I'm building a monitoring tool around bmx7 and like to keep track which nodes announce gateways. I though of the option to check the file /var/run/bmx7/json/parameters for a tunIn interface routing 0.0.0.0 but that's somewhat a hack.
Would it be possible to add an entry to the json status called ipv4_gw (and ipv6_gw) which are set to 1 if bmx7 is set to route 0.0.0.0 (or the ipv6 equivalent)?
I'm building a monitoring tool around bmx7 and like to keep track which nodes announce gateways. I though of the option to check the file
/var/run/bmx7/json/parameters
for atunIn
interface routing0.0.0.0
but that's somewhat a hack.Would it be possible to add an entry to the json
status
calledipv4_gw
(andipv6_gw
) which are set to1
if bmx7 is set to route0.0.0.0
(or the ipv6 equivalent)?