From 220a8b609e3b7348a846c3bc54d6dea4ddc175a4 Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Tue, 22 Mar 2022 01:26:53 +0100 Subject: [PATCH] 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 --- .../fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan b/src/packages/fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan index 58e3d8e5..24e5d5ce 100644 --- a/src/packages/fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan +++ b/src/packages/fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan @@ -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 }