[pve-devel] [PATCH pve-network v4 11/21] sdn: commit fabrics config to running configuration
Gabriel Goller
g.goller at proxmox.com
Wed Jul 2 16:50:31 CEST 2025
From: Stefan Hanreich <s.hanreich at proxmox.com>
Save the fabrics configuration in the running configuration, when
applying the SDN configuration. This causes the FRR configuration to
be actually generated for the openfabric and ospf plugins, since the
FRR configuration is generated from the running configuration.
Co-authored-by: Gabriel Goller <g.goller at proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
src/PVE/Network/SDN.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm
index 8a3090911a95..0c51927157f0 100644
--- a/src/PVE/Network/SDN.pm
+++ b/src/PVE/Network/SDN.pm
@@ -201,11 +201,13 @@ sub commit_config {
my $zones_cfg = PVE::Network::SDN::Zones::config();
my $controllers_cfg = PVE::Network::SDN::Controllers::config();
my $subnets_cfg = PVE::Network::SDN::Subnets::config();
+ my $fabrics_cfg = PVE::Network::SDN::Fabrics::config();
my $vnets = { ids => $vnets_cfg->{ids} };
my $zones = { ids => $zones_cfg->{ids} };
my $controllers = { ids => $controllers_cfg->{ids} };
my $subnets = { ids => $subnets_cfg->{ids} };
+ my $fabrics = { ids => $fabrics_cfg->to_sections() };
$cfg = {
version => $version,
@@ -213,6 +215,7 @@ sub commit_config {
zones => $zones,
controllers => $controllers,
subnets => $subnets,
+ fabrics => $fabrics,
};
cfs_write_file(
--
2.39.5
More information about the pve-devel
mailing list