[pve-devel] [PATCH pve-manager 3/4] network api : reload : always reload

Alexandre Derumier aderumier at odiso.com
Thu Jun 13 15:49:00 CEST 2019


reload also if interfaces.new don't exist
(for vnet or other user change in different file)

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index 98652800..3c6efb11 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");
-- 
2.20.1




More information about the pve-devel mailing list