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

Signed-off-by: Alexandre Derumier <[email protected]>
---
 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

_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to