From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <sleemburg@it-functions.nl>
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) server-digest SHA256)
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id 5513162A4A
 for <pve-devel@lists.proxmox.com>; Sat, 22 Aug 2020 23:41:49 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id 3967F13339
 for <pve-devel@lists.proxmox.com>; Sat, 22 Aug 2020 23:41:49 +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 1C63313329
 for <pve-devel@lists.proxmox.com>; Sat, 22 Aug 2020 23:41:48 +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 <sleemburg@it-functions.nl>)
 id 1k9bGl-0000Lx-Hb
 for pve-devel@lists.proxmox.com; Sat, 22 Aug 2020 23:41:47 +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 <sleemburg@it-functions.nl>) id 1k9bGi-0006df-Ua
 for pve-devel@lists.proxmox.com; Sat, 22 Aug 2020 23:41:44 +0200
To: pve-devel@lists.proxmox.com
From: Stephan Leemburg <sleemburg@it-functions.nl>
Organization: IT Functions
Message-ID: <d4c75d3b-88e6-36db-9c05-88254a305d4a@it-functions.nl>
Date: Sat, 22 Aug 2020 23:41:44 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: nl
X-Scan-Signature: b95c0c47e62695fb4550b2fffab5f14d
X-GeoIP: NL
X-Virus-Scanned: by clamav-new
X-Scan-Signature: b7a1c818b0e58e4768e5bb6b86c529d8
X-SPAM-LEVEL: Spam detection results:  0
 AWL -1.039 Adjusted score from AWL reputation of From: address
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 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]
Subject: [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 <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Sat, 22 Aug 2020 21:41:49 -0000

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