From: Thomas Lamprecht Date: Thu, 6 Mar 2025 08:54:21 +0000 (+0100) Subject: fix missing use statements in core SDN module X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=35b9c672a0f49fc544c18499d90479e55652ba9d;p=mirror%2Fpve-network.git fix missing use statements in core SDN module Reported-by: Fiona Ebner Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm index 8cd9ad8..cc5febe 100644 --- a/src/PVE/Network/SDN.pm +++ b/src/PVE/Network/SDN.pm @@ -3,11 +3,17 @@ package PVE::Network::SDN; use strict; use warnings; +use HTTP::Request; use IO::Socket::SSL; # important for SSL_verify_callback -use JSON; +use JSON qw(decode_json from_json to_json); +use LWP::UserAgent; use Net::SSLeay; +use PVE::Cluster qw(cfs_read_file cfs_write_file cfs_lock_file); use PVE::INotify; +use PVE::RESTEnvironment qw(log_warn); +use PVE::RPCEnvironment; +use PVE::Tools qw(extract_param dir_glob_regex run_command); use PVE::Network::SDN::Vnets; use PVE::Network::SDN::Zones; @@ -15,10 +21,6 @@ use PVE::Network::SDN::Controllers; use PVE::Network::SDN::Subnets; use PVE::Network::SDN::Dhcp; -use PVE::Tools qw(extract_param dir_glob_regex run_command); -use PVE::Cluster qw(cfs_read_file cfs_write_file cfs_lock_file); -use PVE::RESTEnvironment qw(log_warn); - my $running_cfg = "sdn/.running-config"; my $parse_running_cfg = sub {