public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-manager] ui: sdn: zones: evpn : add exitnodes-local-routing && advertise-subnets
Date: Sun,  5 Sep 2021 09:37:26 +0200	[thread overview]
Message-ID: <20210905073726.1829660-1-aderumier@odiso.com> (raw)

Signed-off-by: Alexandre Derumier <aderumier@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




             reply	other threads:[~2021-09-05  7:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05  7:37 Alexandre Derumier [this message]
2022-03-16 15:27 ` [pve-devel] applied: " Thomas Lamprecht
2022-03-28 21:42   ` DERUMIER, Alexandre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210905073726.1829660-1-aderumier@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal