[pve-devel] [PATCH pve-manager 1/1] ui: sdn: zone evpn: delete exitnodes-primary if empty

Alexandre Derumier aderumier at odiso.com
Wed Apr 20 16:19:38 CEST 2022


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/zones/EvpnEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/manager6/sdn/zones/EvpnEdit.js b/www/manager6/sdn/zones/EvpnEdit.js
index 0ac40fc5..f1314ad5 100644
--- a/www/manager6/sdn/zones/EvpnEdit.js
+++ b/www/manager6/sdn/zones/EvpnEdit.js
@@ -28,6 +28,10 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
             delete values['disable-arp-nd-suppression'];
         }
 
+        if (values['exitnodes-primary'] === '') {
+            delete values['exitnodes-primary'];
+        }
+
 	return values;
     },
 
-- 
2.30.2





More information about the pve-devel mailing list