From a0216bf276b27618248f364cae636f8c3a35a0fc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 29 Nov 2023 11:37:05 +0100 Subject: [PATCH] controllers: fix interfacing with read_etc_network_interfaces While not used currently in the parser, passing 1 as file name still makes no sense, and we might want to rework that in general, as why does this have to use the non-inotify read path and manually open the file. Signed-off-by: Thomas Lamprecht --- src/PVE/Network/SDN/Controllers.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Network/SDN/Controllers.pm b/src/PVE/Network/SDN/Controllers.pm index f5a6b86..95f3394 100644 --- a/src/PVE/Network/SDN/Controllers.pm +++ b/src/PVE/Network/SDN/Controllers.pm @@ -79,10 +79,10 @@ sub generate_controller_config { return if !$vnet_cfg && !$zone_cfg && !$controller_cfg; - #read main config for physical interfaces + # read main config for physical interfaces my $current_config_file = "/etc/network/interfaces"; my $fh = IO::File->new($current_config_file); - my $interfaces_config = PVE::INotify::read_etc_network_interfaces(1,$fh); + my $interfaces_config = PVE::INotify::read_etc_network_interfaces($current_config_file, $fh); $fh->close(); # check uplinks -- 2.39.5