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 <t.lamprecht@proxmox.com>
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