public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
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	[thread overview]
Message-ID: <20261124094025.2479405-3-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20261124094025.2479405-1-s.ivanov@proxmox.com>

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 <s.ivanov@proxmox.com>
---
 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





  parent reply	other threads:[~2026-11-24  9:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  9:39 [PATCH installer 0/2] align generated vlan-interface config with our docs Stoiko Ivanov
2026-11-24  9:39 ` [PATCH installer 1/2] network: align VLAN interface names with the documentation Stoiko Ivanov
2026-11-24  9:39 ` Stoiko Ivanov [this message]
2026-11-24 10:24 ` [PATCH installer 0/2] align generated vlan-interface config with our docs Stefan Hanreich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124094025.2479405-3-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal