[openwrt/openwrt] vxlan: remove mandatory peeraddr

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 20 07:43:47 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5222aadbf353b7cc030c39aa816f33951b104552

commit 5222aadbf353b7cc030c39aa816f33951b104552
Author: Johannes Kimmel <fff at bareminimum.eu>
AuthorDate: Mon Jul 20 08:05:09 2020 +0200

    vxlan: remove mandatory peeraddr
    
    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 at bareminimum.eu>
    Acked-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 package/network/config/vxlan/files/vxlan.sh | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/package/network/config/vxlan/files/vxlan.sh b/package/network/config/vxlan/files/vxlan.sh
index 7b1c703955..bdcaa628c4 100755
--- a/package/network/config/vxlan/files/vxlan.sh
+++ b/package/network/config/vxlan/files/vxlan.sh
@@ -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" ] && {



More information about the lede-commits mailing list