pve-network added new generalized frr generation and
etc/network/interfaces generations methods. Starting with this series,
not only the zones plugin edits the /etc/network/interfaces.d/sdn file, but
the fabrics as well. The new fabrics are also implemented in rust, so
they are not a normal ControllerPlugin – that's why the frr generation
has also been factored out.

Signed-off-by: Gabriel Goller <g.gol...@proxmox.com>
Co-authored-by: Stefan Hanreich <s.hanre...@proxmox.com>
---
 PVE/API2/Network.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 12ee6cca057f..f5b90baeeade 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -798,7 +798,7 @@ __PACKAGE__->register_method({
            rename($new_config_file, $current_config_file) if -e 
$new_config_file;
 
            if ($have_sdn) {
-               PVE::Network::SDN::generate_zone_config();
+               PVE::Network::SDN::generate_etc_network_config();
                PVE::Network::SDN::generate_dhcp_config();
            }
 
@@ -811,7 +811,7 @@ __PACKAGE__->register_method({
            PVE::Tools::run_command(['ifreload', '-a'], errfunc => $err);
 
            if ($have_sdn) {
-               PVE::Network::SDN::generate_controller_config(1);
+               PVE::Network::SDN::generate_frr_config(1);
            }
        };
        return $rpcenv->fork_worker('srvreload', 'networking', $authuser, 
$worker);
@@ -868,3 +868,5 @@ __PACKAGE__->register_method({
 
        return undef;
     }});
+
+1;
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to