From 7947107ed3823dbe7e3fd880f17f35ad8ee34938 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Fabian Bläse --- .../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() {