5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-06 17:18:00 +03:00

controller: evpn reload: use log_warn to cause a task-warning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-11-22 19:49:04 +01:00
parent 2c298fa1f8
commit a3c114c0ef

View File

@ -6,6 +6,7 @@ use warnings;
use PVE::INotify;
use PVE::JSONSchema qw(get_standard_option);
use PVE::Tools qw(run_command file_set_contents file_get_contents);
use PVE::RESTEnvironment qw(log_warn);
use PVE::Network::SDN::Controllers::Plugin;
use PVE::Network::SDN::Zones::Plugin;
@ -578,7 +579,7 @@ sub reload_controller {
my $bin_path = "/usr/lib/frr/frr-reload.py";
if (!-e $bin_path) {
warn "missing $bin_path. Please install frr-pythontools package";
log_warn("missing $bin_path. Please install frr-pythontools package");
return;
}