[PATCH pve-network v5 33/46] sdn: frr: consider route maps and prefix lists in dry-run

Stefan Hanreich
2026-05-05T15:39:04Z

Read and pass the route map / prefix list configuration to the FRR
config generation function, so that changes to route map / prefix
lists show up in the dry-run as well.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
src/PVE/API2/Network/SDN.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/PVE/API2/Network/SDN.pm b/src/PVE/API2/Network/SDN.pm
index f0d8159..c221f6c 100644
--- a/src/PVE/API2/Network/SDN.pm
+++ b/src/PVE/API2/Network/SDN.pm
@@ -413,7 +413,12 @@ __PACKAGE__->register_method({
my $running_cfg = PVE::Network::SDN::compile_running_cfg(1);

my $fabric_cfg = PVE::Network::SDN::Fabrics::config(0);
- my $frr_cfg = PVE::Network::SDN::generate_frr_raw_config($running_cfg, $fabric_cfg);
+ my $route_map_config = PVE::Network::SDN::RouteMaps::config(0);
+ my $prefix_list_config = PVE::Network::SDN::PrefixLists::config(0);
+
+ my $frr_cfg = PVE::Network::SDN::generate_frr_raw_config(
+ $running_cfg, $fabric_cfg, $route_map_config, $prefix_list_config,
+ );
my $new_cfg_frr = PVE::Network::SDN::Frr::raw_config_to_string($frr_cfg);

my $new_interfaces_cfg =
--
2.47.3