[pve-devel] [PATCH pve-network 3/5] api network: Use networkconfig

Alexandre Derumier aderumier at odiso.com
Fri Jun 7 11:58:30 CEST 2019


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 6014168..372d819 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -13,6 +13,7 @@ use PVE::RPCEnvironment;
 use PVE::JSONSchema qw(get_standard_option);
 use PVE::AccessControl;
 use IO::File;
+use PVE::NetworkConfig;
 
 use base qw(PVE::RESTHandler);
 
@@ -322,12 +323,12 @@ my $new_network_config_verify = sub {
 
     #clean-me
     my $fh = IO::File->new("<$current_config_file");
-    my $running_config = PVE::Inotify::read_etc_network_interfaces(1,$fh);
+    my $running_config = PVE::NetworkConfig::read_etc_network_interfaces(1,$fh);
     $fh->close();
 
     #clean-me
     $fh = IO::File->new("<$new_config_file");
-    my $new_config = PVE::INotify::read_etc_network_interfaces(1,$fh);
+    my $new_config = PVE::NetworkConfig::read_etc_network_interfaces(1,$fh);
     $fh->close();
 
     my $ovs_changes = undef;
-- 
2.20.1




More information about the pve-devel mailing list