[pve-devel] [Bump maximum number of container net interfaces from 10 to 32 1/1] Bump maximum number of container net interfaces from 10 to 32

Stephan Leemburg stephan.leemburg at it-functions.nl
Sun Aug 23 13:38:28 CEST 2020


Signed-off-by: Stephan Leemburg <stephan.leemburg at it-functions.nl>
---
 www/manager6/lxc/Network.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 2938c503..8af00fca 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -74,7 +74,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
 	}
 
 	var i;
-	for (i = 0; i < 10; i++) {
+	for (i = 0; i < 32; i++) {
 	    if (me.isCreate && !me.dataCache['net'+i.toString()]) {
 		me.ifname = 'net' + i.toString();
 		break;
@@ -370,7 +370,7 @@ Ext.define('PVE.lxc.NetworkView', {
 		    records.push(net);
 		});
 		me.store.loadData(records);
-		me.down('button[name=addButton]').setDisabled((records.length >= 10));
+		me.down('button[name=addButton]').setDisabled((records.length >= 32));
 	    }
 	});
     },
-- 
2.25.1




More information about the pve-devel mailing list