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 <rlanghammer@web.de>
Acked-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
Robert Langhammer 2022-03-24 09:12:09 +01:00 committed by Fabian Bläse
parent 378163d834
commit 7947107ed3
1 changed files with 1 additions and 0 deletions

View File

@ -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() {