[pve-devel] [PATCH pve-manager v2] sdn: evpn: allow empty primary exit node in zone form

Stefan Hanreich s.hanreich at proxmox.com
Thu Feb 22 17:40:47 CET 2024


its broken since the change in semantics of the PUT endpoint [1]

[1] https://git.proxmox.com/?p=pve-network.git;a=commit;h=3e3cafabaf955d53c4c2d4e346bf5c3a5c6d1852

Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
Originally-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/zones/EvpnEdit.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/sdn/zones/EvpnEdit.js b/www/manager6/sdn/zones/EvpnEdit.js
index a08faef2d..b4d982bd7 100644
--- a/www/manager6/sdn/zones/EvpnEdit.js
+++ b/www/manager6/sdn/zones/EvpnEdit.js
@@ -54,6 +54,8 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
 		fieldLabel: gettext('Primary Exit Node'),
 		multiSelect: false,
 		autoSelect: false,
+		skipEmptyText: true,
+		deleteEmpty: !me.isCreate,
 	    },
 	    {
 		xtype: 'proxmoxcheckbox',
-- 
2.39.2




More information about the pve-devel mailing list