mirror of
https://git.proxmox.com/git/pve-network
synced 2025-08-16 11:38:43 +00:00
don't regenerate frr config if no router is defined
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
79939ff70b
commit
62e54fb752
@ -195,6 +195,8 @@ sub generate_frr_config {
|
||||
}
|
||||
}
|
||||
|
||||
return undef if !$frr_cfg;
|
||||
|
||||
#generate configuration
|
||||
my $config = {};
|
||||
|
||||
|
@ -15,6 +15,8 @@ print "\n";
|
||||
|
||||
|
||||
my $frr_config = PVE::Network::SDN::generate_frr_config();
|
||||
PVE::Network::SDN::write_frr_config($frr_config);
|
||||
print "/etc/frr/frr.conf\n";
|
||||
print $frr_config;
|
||||
if ($frr_config) {
|
||||
PVE::Network::SDN::write_frr_config($frr_config);
|
||||
print "/etc/frr/frr.conf\n";
|
||||
print $frr_config;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user