[pve-devel] [PATCH pve-manager 2/3] sdn: restrict zone && vnet name to 8 characters

Alexandre Derumier aderumier at odiso.com
Tue May 19 18:39:51 CEST 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/VnetEdit.js             | 2 +-
 www/manager6/sdn/controllers/EvpnEdit.js | 2 +-
 www/manager6/sdn/zones/EvpnEdit.js       | 2 +-
 www/manager6/sdn/zones/QinQEdit.js       | 2 +-
 www/manager6/sdn/zones/VxlanEdit.js      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/www/manager6/sdn/VnetEdit.js b/www/manager6/sdn/VnetEdit.js
index ca18c4ec..9ef2b1c0 100644
--- a/www/manager6/sdn/VnetEdit.js
+++ b/www/manager6/sdn/VnetEdit.js
@@ -29,7 +29,7 @@ Ext.define('PVE.sdn.VnetInputPanel', {
 	    cbind: {
 		editable: '{isCreate}',
 	    },
-	    maxLength: 10,
+	    maxLength: 8,
 	    flex: 1,
 	    allowBlank: false,
 	    fieldLabel: gettext('Name'),
diff --git a/www/manager6/sdn/controllers/EvpnEdit.js b/www/manager6/sdn/controllers/EvpnEdit.js
index 8856939b..125a8fc7 100644
--- a/www/manager6/sdn/controllers/EvpnEdit.js
+++ b/www/manager6/sdn/controllers/EvpnEdit.js
@@ -10,7 +10,7 @@ Ext.define('PVE.sdn.controllers.EvpnInputPanel', {
 	    {
 		xtype: me.isCreate ? 'textfield' : 'displayfield',
 		name: 'controller',
-		maxLength: 10,
+		maxLength: 8,
 		value: me.controllerid || '',
 		fieldLabel: 'ID',
 		allowBlank: false
diff --git a/www/manager6/sdn/zones/EvpnEdit.js b/www/manager6/sdn/zones/EvpnEdit.js
index 6229da29..f5a9560e 100644
--- a/www/manager6/sdn/zones/EvpnEdit.js
+++ b/www/manager6/sdn/zones/EvpnEdit.js
@@ -22,7 +22,7 @@ Ext.define('PVE.sdn.zones.EvpnInputPanel', {
            {
             xtype: me.isCreate ? 'textfield' : 'displayfield',
             name: 'zone',
-            maxLength: 10,
+            maxLength: 8,
             value: me.zone || '',
             fieldLabel: 'ID',
             allowBlank: false
diff --git a/www/manager6/sdn/zones/QinQEdit.js b/www/manager6/sdn/zones/QinQEdit.js
index b50b505e..9d0fdb67 100644
--- a/www/manager6/sdn/zones/QinQEdit.js
+++ b/www/manager6/sdn/zones/QinQEdit.js
@@ -22,7 +22,7 @@ Ext.define('PVE.sdn.zones.QinQInputPanel', {
            {
             xtype: me.isCreate ? 'textfield' : 'displayfield',
             name: 'zone',
-            maxLength: 10,
+            maxLength: 8,
             value: me.zone || '',
             fieldLabel: 'ID',
             allowBlank: false
diff --git a/www/manager6/sdn/zones/VxlanEdit.js b/www/manager6/sdn/zones/VxlanEdit.js
index 7ec0e382..4d8c1719 100644
--- a/www/manager6/sdn/zones/VxlanEdit.js
+++ b/www/manager6/sdn/zones/VxlanEdit.js
@@ -23,7 +23,7 @@ Ext.define('PVE.sdn.zones.VxlanInputPanel', {
         me.items = [
            {
             xtype: me.isCreate ? 'textfield' : 'displayfield',
-	    maxLength: 10,
+	    maxLength: 8,
             name: 'zone',
             value: me.zone || '',
             fieldLabel: 'ID',
-- 
2.20.1




More information about the pve-devel mailing list