[pve-devel] [PATCH pve-manager] ui: sdn: zones: evpn : add exitnodes-local-routing && advertise-subnets

Alexandre Derumier aderumier at odiso.com
Sun Sep 5 09:37:26 CEST 2021


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/zones/Base.js     |  2 ++
 www/manager6/sdn/zones/EvpnEdit.js | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/www/manager6/sdn/zones/Base.js b/www/manager6/sdn/zones/Base.js
index e4dc7ccf..347889c0 100644
--- a/www/manager6/sdn/zones/Base.js
+++ b/www/manager6/sdn/zones/Base.js
@@ -56,6 +56,8 @@ Ext.define('PVE.panel.SDNZoneBase', {
 Ext.define('PVE.sdn.zones.BaseEdit', {
     extend: 'Proxmox.window.Edit',
 
+    width: 400,
+
     initComponent: function() {
 	var me = this;
 
diff --git a/www/manager6/sdn/zones/EvpnEdit.js b/www/manager6/sdn/zones/EvpnEdit.js
index 909de2d6..04a6f4d6 100644
--- a/www/manager6/sdn/zones/EvpnEdit.js
+++ b/www/manager6/sdn/zones/EvpnEdit.js
@@ -16,6 +16,14 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
             delete values.mac;
         }
 
+        if (values['advertise-subnets'] === 0) {
+            delete values['advertise-subnets'];
+        }
+
+        if (values['exitnodes-local-routing'] === 0) {
+            delete values['exitnodes-local-routing'];
+        }
+
 	return values;
     },
 
@@ -54,6 +62,20 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
 		multiSelect: true,
 		autoSelect: false,
 	    },
+	    {
+		xtype: 'proxmoxcheckbox',
+		name: 'exitnodes-local-routing',
+		uncheckedValue: 0,
+		checked: false,
+		fieldLabel: gettext('Exit Nodes local routing'),
+	    },
+	    {
+		xtype: 'proxmoxcheckbox',
+		name: 'advertise-subnets',
+		uncheckedValue: 0,
+		checked: false,
+		fieldLabel: gettext('Advertise subnets'),
+	    },
 	    {
 		xtype: 'pveSDNControllerSelector',
 		fieldLabel: gettext('Controller'),
-- 
2.30.2




More information about the pve-devel mailing list