forked from freifunk-franken/firmware
fff-vxlan-node: fix cleanup
Without "uci commit" peers do not appear in /etc/config network. Use uci show instead. Signed-off-by: Robert Langhammer <rlanghammer@web.de> Acked-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
405e0a43d5
commit
378163d834
|
@ -21,6 +21,6 @@ vxlan_start_stop() {
|
|||
# this workaround is cleaning up old fdb entries
|
||||
# and can be removed if someday netifd will do that
|
||||
bridge fdb show dev vxlan0 state permanent | while read mac dst ip rest ; do
|
||||
grep -q "$ip" /etc/config/network || bridge fdb del $mac dev vxlan0 dst $ip
|
||||
uci show network | grep -q "$ip" || bridge fdb del $mac dev vxlan0 dst $ip
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue