This will reduce size of stats_hood and, more importantly,
make hood assignment independent of hood name changes:
Previouly: Name change = changing string in every place
Now: Name change = change of one table entry
This requires changes to the MySQL database!
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This is required to uniquely find the relation between VPN and
bat after change of MAC adresses.
This requires changes to the MySQL database!
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Introduces two new query parameters:
bat:<mac> looks for routers being aware of the specified gateway
batselected:<mac> looks for routers CONNECTED to the specified gw
Both variants support regex.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Introduces two new query parameters:
gw:<mac> looks for routers being aware of the specified gateway
selected:<mac> looks for routers CONNECTED to the specified gw
Both variants support regex.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
If neighbor:<mac-address> or neighbour:<mac-address> is searched,
the routers having this neighbor are returned.
Regex is enabled.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This fixes searching for MAC addresses in the router list and
via api/get_router_by_mac/
Additionally, regex is enabled for MAC addresses.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>