diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-07-16 15:08:06 +0200 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2025-07-17 00:10:41 +0200 |
| commit | 3999d93ac05c3c60a41d1ffb2d98ab352f91df3f (patch) | |
| tree | 6714c122d4fa09cb0e9e3ed21beb561ac3bb4ce8 | |
| parent | 424fbba19d7e402a89f6aa3c38a4a3d6ca620bf5 (diff) | |
sdn: commit fabrics config to running configuration
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@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20250716130837.585796-46-g.goller@proxmox.com
| -rw-r--r-- | src/PVE/Network/SDN.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm index bd6f7a2..46c8580 100644 --- a/src/PVE/Network/SDN.pm +++ b/src/PVE/Network/SDN.pm @@ -177,11 +177,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, @@ -189,6 +191,7 @@ sub commit_config { zones => $zones, controllers => $controllers, subnets => $subnets, + fabrics => $fabrics, }; cfs_write_file($running_cfg, $cfg); |
