From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 825721FF066 for ; Tue, 24 Nov 2026 10:40:46 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5C93A2151D; Tue, 24 Nov 2026 10:40:39 +0100 (CET) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Subject: [PATCH installer 2/2] network: drop unneded vlan-raw-device Date: Tue, 24 Nov 2026 10:39:30 +0100 Message-ID: <20261124094025.2479405-3-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261124094025.2479405-1-s.ivanov@proxmox.com> References: <20261124094025.2479405-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795513234779 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.380 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GNAQ75XLOHHULRBGJTVNHDWLFEGHZEXE X-Message-ID-Hash: GNAQ75XLOHHULRBGJTVNHDWLFEGHZEXE X-MailFrom: s.ivanov@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: with the previous patch using $iface.$vid the vlan-raw-device and vlan-id setting should not be needed anymore based on my experience. fwiw ifupdown-addons-interfaces(5) agrees, but also says, that if you don't use the dot notation you need to provide both vlan-raw-device _and_ vlan-id (which does not match my experience). Sending as separate patch - on the chance that I missed some combination where vlan-raw-device and(/or) vlan-id are needed/make sense. Signed-off-by: Stoiko Ivanov --- Proxmox/Install.pm | 2 +- test/generate-ifupdown2-config.pl | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm index 337f0d7..d20777e 100644 --- a/Proxmox/Install.pm +++ b/Proxmox/Install.pm @@ -889,7 +889,7 @@ sub generate_ifupdown2_config { my $config = "auto $raw_device.$vlan_id\niface $raw_device.$vlan_id $ntype static\n\taddress $cidr\n"; $config .= "\tgateway $gateway\n" if !$is_gateway6_from_ra; - return [4, "$raw_device.$vlan_id", $config . "\tvlan-raw-device $raw_device\n"]; + return [4, "$raw_device.$vlan_id", $config]; }; if ($iso_env->{cfg}->{bridged_network} && defined($vlan_id)) { diff --git a/test/generate-ifupdown2-config.pl b/test/generate-ifupdown2-config.pl index b33f7a7..a76c618 100755 --- a/test/generate-ifupdown2-config.pl +++ b/test/generate-ifupdown2-config.pl @@ -156,7 +156,6 @@ auto eno1.5 iface eno1.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device eno1 iface eno2 inet manual EOT @@ -198,7 +197,6 @@ auto bond0.5 iface bond0.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device bond0 auto eno1 iface eno1 inet manual @@ -248,7 +246,6 @@ auto vmbr0.5 iface vmbr0.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device vmbr0 EOT , 'host network setup', ); @@ -308,7 +305,6 @@ auto vmbr0.5 iface vmbr0.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device vmbr0 EOT , 'host network setup', ); @@ -327,7 +323,6 @@ auto eno1.5 iface eno1.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device eno1 EOT , 'interfaces ordered like the network API', ); @@ -351,7 +346,6 @@ auto bond0.5 iface bond0.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device bond0 EOT , 'interfaces ordered like the network API', ); @@ -367,7 +361,6 @@ auto eno1.5 iface eno1.5 inet static address 192.168.0.10/24 gateway 192.168.0.1 - vlan-raw-device eno1 iface eno2 inet manual EOT @@ -753,7 +746,6 @@ auto bond0.5 iface bond0.5 inet6 static address 2001:db8::1/64 gateway fe80::1 - vlan-raw-device bond0 auto eno1 iface eno1 inet6 manual @@ -800,7 +792,6 @@ iface eno1 inet6 manual auto eno1.5 iface eno1.5 inet6 static address 2001:db8::1/64 - vlan-raw-device eno1 iface eno2 inet6 manual EOT @@ -825,7 +816,6 @@ iface vmbr0 inet6 manual auto vmbr0.5 iface vmbr0.5 inet6 static address 2001:db8::1/64 - vlan-raw-device vmbr0 EOT , 'gateway learned from router advertisements on the management VLAN on a bridge is not configured', ); -- 2.47.3