summaryrefslogtreecommitdiff
path: root/src/PVE/Network/SDN/Zones.pm
diff options
context:
space:
mode:
authorStefan Hanreich <s.hanreich@proxmox.com>2025-07-16 15:08:07 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2025-07-17 00:10:42 +0200
commitaff710c146d642e5304a179aadd5fb865245a20e (patch)
tree0b0ad61983b497213c98d186fc73fdc90c79dc64 /src/PVE/Network/SDN/Zones.pm
parent3999d93ac05c3c60a41d1ffb2d98ab352f91df3f (diff)
fabrics: generate ifupdown configuration
Currently, the ifupdown config generation is handled solely by the zones plugin. Since the fabrics need to generate ifupdown configuration as well, we create a new helper in the SDN module. It then in turn calls into the zone and fabrics plugin, and merges the generated raw configuration before writing it to the /etc/network/interfaces.d/sdn file. Co-authored-by: Gabriel Goller <g.goller@proxmox.com> Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Link: https://lore.proxmox.com/20250716130837.585796-47-g.goller@proxmox.com
Diffstat (limited to 'src/PVE/Network/SDN/Zones.pm')
-rw-r--r--src/PVE/Network/SDN/Zones.pm10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/PVE/Network/SDN/Zones.pm b/src/PVE/Network/SDN/Zones.pm
index 007d746..5f30df3 100644
--- a/src/PVE/Network/SDN/Zones.pm
+++ b/src/PVE/Network/SDN/Zones.pm
@@ -179,16 +179,6 @@ sub generate_etc_network_config {
return $raw_network_config;
}
-sub write_etc_network_config {
- my ($rawconfig) = @_;
-
- return if !$rawconfig;
-
- my $writefh = IO::File->new($local_network_sdn_file, ">");
- print $writefh $rawconfig;
- $writefh->close();
-}
-
sub read_etc_network_config_version {
my $versionstr = PVE::Tools::file_read_firstline($local_network_sdn_file);