]> git.proxmox.com Git - pve-network.git/commitdiff
controller: evpn reload: use log_warn to cause a task-warning
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 18:49:04 +0000 (19:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 18:49:04 +0000 (19:49 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Controllers/EvpnPlugin.pm

index 3ac7d7eb7b490097ef11f52373355f7376ad6693..f32013987af0c0dbc2b17ee4c4faabcfcaba93d7 100644 (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;
     }