From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D322962B00 for ; Sun, 23 Aug 2020 00:16:12 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BFD8713504 for ; Sun, 23 Aug 2020 00:16:12 +0200 (CEST) Received: from mx0.it-functions.nl (mx0.it-functions.nl [178.32.167.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 27FA2134F7 for ; Sun, 23 Aug 2020 00:16:11 +0200 (CEST) Received: from [217.100.26.194] (helo=daruma-old.hachimitsu.nl) by mx0.it-functions.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9bo2-0000OM-IR for pve-devel@lists.proxmox.com; Sun, 23 Aug 2020 00:16:10 +0200 Received: from [192.168.254.32] by daruma-old.hachimitsu.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1k9bo0-0006fX-7E for pve-devel@lists.proxmox.com; Sun, 23 Aug 2020 00:16:08 +0200 To: pve-devel@lists.proxmox.com References: From: Stephan Leemburg Organization: IT Functions Message-ID: Date: Sun, 23 Aug 2020 00:16:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-Scan-Signature: c492314e4e35a38b03a663baf863e11f X-GeoIP: NL X-Virus-Scanned: by clamav-new X-Scan-Signature: 6ba87044c26a4f91cb24f91fdfb23315 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.520 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -2.079 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record T_SPF_PERMERROR 0.01 SPF: test of record failed (permerror) URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [config.pm, proxmox.com] Subject: Re: [pve-devel] More than 10 interfaces in lxc containers X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 22:16:12 -0000 Sorry, and also in /usr/share/pve-manager/js/pvemanagerlib.js : in /usr/share/pve-manager/js/pvemanagerlib.js change         for (i = 0; i < 10; i++) {             if (me.isCreate && !me.dataCache['net'+i.toString()]) { to         for (i = 0; i < 31; i++) {             if (me.isCreate && !me.dataCache['net'+i.toString()]) { Then it works for me. It would be great to have an uplift of possible interfaces. Kind regards, Stephan On 22-08-2020 23:41, Stephan Leemburg wrote: > Hi @dev, > > I have read about other people who need more than 10 network > interfaces in their lxc containers. > > For me, I have that need too for a firewall container. > > I think it is not so difficult to raise the 10 upto 32. > > Just change > > /usr/share/pve-manager/js/pvemanagerlib.js > > in Ext.define('PVE.lxc.NetworkView', { > > the line > > me.down('button[name=addButton]').setDisabled((records.length >= 10)); > > to > > me.down('button[name=addButton]').setDisabled((records.length >= 32)); > > And in > > /usr/share/perl5/PVE/LXC/Config.pm change > > my $MAX_LXC_NETWORKS = 10; > > to > > my $MAX_LXC_NETWORKS = 32; > > As far as I can see, that is enough. > > Would you please consider raising the limit? Would you like me to send > in a patch file or pull request. > > Or is the above sufficient. > > Thanks and kind regards, > > Stephan > > > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >