[pve-devel] [PATCH pve-manager 3/3] pve-sdn-commit: add ifreload

Stefan Hanreich s.hanreich at proxmox.com
Thu Jul 17 17:28:56 CEST 2025


After generating the ifupdown2 configuration in SDN and before
generating the FRR configuration in SDN, we need to apply the changes
in ifupdown2, since the FRR generation logic relies on the network
configuration being applied in order to generate a correct FRR
configuration file.

Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 bin/pve-sdn-commit | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/bin/pve-sdn-commit b/bin/pve-sdn-commit
index 2654e17ed..69f93584e 100644
--- a/bin/pve-sdn-commit
+++ b/bin/pve-sdn-commit
@@ -4,11 +4,22 @@ use strict;
 use warnings;
 
 use PVE::Network::SDN;
+use PVE::Tools;
 
 PVE::Network::SDN::commit_config();
 
 PVE::Network::SDN::generate_zone_config();
 PVE::Network::SDN::generate_dhcp_config();
+
+my $err = sub {
+    my $line = shift;
+    if ($line =~ /(warning|error): (\S+):/) {
+        print "$2 : $line \n";
+    }
+};
+
+PVE::Tools::run_command(['ifreload', '-a'], errfunc => $err);
+
 PVE::Network::SDN::generate_controller_config(1);
 
 exit 0;
-- 
2.39.5




More information about the pve-devel mailing list