]> git.proxmox.com Git - pve-common.git/commit
inotify: read_interfaces: add vlan-id and vlan-raw-device on dot notation vlan interfaces
authorAaron Lauterer <a.lauterer@proxmox.com>
Mon, 12 Apr 2021 13:14:38 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Jun 2021 12:41:46 +0000 (14:41 +0200)
commitb818066a85abe1e1ec162312294bebb36d16d460
treec2fc92ff5a164adbaf4c5fe057462beb6cf1dbb2
parentbd9eb367a092f7034d22d4a2c860ce1e56df8e34
inotify: read_interfaces: add vlan-id and vlan-raw-device on dot notation vlan interfaces

Setting the vlan-id and vlan-raw-device value for vlan devices that
follow the dot notaton (interface.vlan) aligns how dot notation vlan
devices and vlan devices that use the explicit vlan-id and
vlan-raw-device options, available with ifupdown2, are represented in
API return values.

Previously the type for both was 'vlan' but only the latter showed more
details.

Setting these values here should not have any influence on how the
interfaces file is being written as these two values are already
filtered in __write_etc_network_interfaces for dot notation devices.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
src/PVE/INotify.pm