From 00b8eb6e6e6277e8027a16d2aa2594e8378d2d1c Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Thu, 24 Mar 2022 09:12:09 +0100 Subject: [PATCH] fff-vxlan-node: reset vid Reset vid if no peers are available. If a router switches to a hood without vxlan, or the peers in the hoodfile disappear, the vid should be reset. Signed-off-by: Robert Langhammer --- .../fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan | 1 + 1 file changed, 1 insertion(+) 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 24e5d5ce..0b74136f 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 @@ -2,6 +2,7 @@ protocol=vxlan vxlan_clear() { while uci -q delete network.@vxlan_peer[0]; do :; done + uci set network.vxlan0.vid="0" } vxlan_addpeer() {