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>
This commit is contained in:
Robert Langhammer 2022-03-22 01:26:53 +01:00
parent f5a8cb93fb
commit 220a8b609e
1 changed files with 1 additions and 1 deletions

View File

@ -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
}