From feaf369e77431c0edd95ab52299cc9d1186a885c Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 13 Jun 2019 15:49:00 +0200 Subject: [PATCH] network api : reload : always reload reload also if interfaces.new don't exist (for vnet or other user change in different file) Signed-off-by: Alexandre Derumier --- PVE/API2/Network.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm index 94fc5c35..152b23f7 100644 --- a/PVE/API2/Network.pm +++ b/PVE/API2/Network.pm @@ -541,7 +541,6 @@ __PACKAGE__->register_method({ my $new_config_file = "/etc/network/interfaces.new"; die "you need ifupdown2 to reload networking\n" if !-e '/usr/share/ifupdown2'; - die "no new network config to apply\n" if !-e $new_config_file; #clean-me my $fh = IO::File->new("<$current_config_file");