mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-21 22:03:53 +03:00
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 <t.lamprecht@proxmox.com>
This commit is contained in:
parent
677e12cacf
commit
a0216bf276
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user