* [pve-devel] [PATCH installer] network: sync option names with pve-common
@ 2021-06-24 7:29 Fabian Grünbichler
2021-06-24 9:01 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Grünbichler @ 2021-06-24 7:29 UTC (permalink / raw)
To: pve-devel
back in 2018, commit 1accc6da659d8a02dcf1c2a636749e6f48fb9c2d
"Inotify : write network config : use modern syntax for options"
changed pve-common's /etc/network/interfaces writer to prefer options
with '-' over those with '_'.
having the installer write the old variant makes any modification of the
vmbr0 interface via the API also change these three lines to the new
variant - so let's do it right from the start.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
https://forum.proxmox.com/threads/wrong-elaboration-of-etc-network-interface-by-proxmox-gui.91271/
proxinstall | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/proxinstall b/proxinstall
index d18ad6c..98cee66 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1627,9 +1627,9 @@ sub extract_data {
"\nauto vmbr0\niface vmbr0 $ntype static\n" .
"\taddress $cidr\n" .
"\tgateway $gateway\n" .
- "\tbridge_ports $ethdev\n" .
- "\tbridge_stp off\n" .
- "\tbridge_fd 0\n";
+ "\tbridge-ports $ethdev\n" .
+ "\tbridge-stp off\n" .
+ "\tbridge-fd 0\n";
} else {
$ifaces .= "auto $ethdev\n" .
"iface $ethdev $ntype static\n" .
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH installer] network: sync option names with pve-common
2021-06-24 7:29 [pve-devel] [PATCH installer] network: sync option names with pve-common Fabian Grünbichler
@ 2021-06-24 9:01 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-06-24 9:01 UTC (permalink / raw)
To: Proxmox VE development discussion, Fabian Grünbichler
On 24.06.21 09:29, Fabian Grünbichler wrote:
> back in 2018, commit 1accc6da659d8a02dcf1c2a636749e6f48fb9c2d
> "Inotify : write network config : use modern syntax for options"
> changed pve-common's /etc/network/interfaces writer to prefer options
> with '-' over those with '_'.
>
> having the installer write the old variant makes any modification of the
> vmbr0 interface via the API also change these three lines to the new
> variant - so let's do it right from the start.
>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> ---
> https://forum.proxmox.com/threads/wrong-elaboration-of-etc-network-interface-by-proxmox-gui.91271/
>
> proxinstall | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
>
nice catch, applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-24 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 7:29 [pve-devel] [PATCH installer] network: sync option names with pve-common Fabian Grünbichler
2021-06-24 9:01 ` [pve-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal