vxlan: remove mandatory peeraddr
authorJohannes Kimmel <fff@bareminimum.eu>
Mon, 20 Jul 2020 06:05:09 +0000 (08:05 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 20 Jul 2020 11:43:36 +0000 (13:43 +0200)
vxlan can be configured without a peer address. This is used to prepare
an interface and add peers later.

Fixes: FS#2743
Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
Acked-by: Matthias Schiffer <mschiffer@universe-factory.net>
package/network/config/vxlan/files/vxlan.sh

index 7b1c7039551b7781f5f7a8e73b964db698f3697b..bdcaa628c4416cc83258dd38a6fc0978ea55a3bb 100755 (executable)
@@ -55,12 +55,6 @@ proto_vxlan_setup() {
        local ipaddr peeraddr
        json_get_vars ipaddr peeraddr tunlink
 
-       [ -z "$peeraddr" ] && {
-               proto_notify_error "$cfg" "MISSING_ADDRESS"
-               proto_block_restart "$cfg"
-               exit
-       }
-
        ( proto_add_host_dependency "$cfg" '' "$tunlink" )
 
        [ -z "$ipaddr" ] && {
@@ -85,12 +79,6 @@ proto_vxlan6_setup() {
        local ip6addr peer6addr
        json_get_vars ip6addr peer6addr tunlink
 
-       [ -z "$peer6addr" ] && {
-               proto_notify_error "$cfg" "MISSING_ADDRESS"
-               proto_block_restart "$cfg"
-               exit
-       }
-
        ( proto_add_host_dependency "$cfg" '' "$tunlink" )
 
        [ -z "$ip6addr" ] && {