forked from freifunk-franken/firmware
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:
parent
378163d834
commit
7947107ed3
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user