api/gwinfo: Stop filtering br-* interfaces
Keep br-* interfaces, throw away l2tp. Seems like batctl gwl only shows br-* or fff*, but never l2tp*. Seems to be required to support V1 gateways with L2TP. The main impact on table size is done by l2tp*. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
9da232ac50
commit
0dea6339e2
|
@ -32,7 +32,7 @@ def import_gw_data(mysql, gw_data):
|
|||
for n in gw_data["netifs"]:
|
||||
if len(n["mac"])<17:
|
||||
continue
|
||||
if n["netif"].startswith("l2tp") or n["netif"].startswith("br-"):
|
||||
if n["netif"].startswith("l2tp"): # Filter l2tp interfaces
|
||||
continue
|
||||
if not "vpnif" in n or not n["vpnif"]:
|
||||
n["vpnif"] = None
|
||||
|
|
Loading…
Reference in New Issue