]> git.proxmox.com Git - pve-common.git/commit - src/PVE/INotify.pm
inotify: also detect VLAN id from "vlan\d+" ifaces
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Jun 2021 14:45:30 +0000 (16:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Jun 2021 14:45:33 +0000 (16:45 +0200)
commit9fffe4bc89609736408d5daf3a0386cc6f30b79a
treed5fded049c40b2fff1d42944991a27da7dc88217
parenteca898c0c126ccefca87f0a62b7fde69a2bc865f
inotify: also detect VLAN id from "vlan\d+" ifaces

We support also vlanX, with X being a integer for the VLAN id, as
valid vlan iface name, so support that too here.

and make the dev name check for definedness, even if "0" is currently
not really supported (officially) it is still a valid iface name for
the kernel (which takes any byte).

The VLAN id is in the range of [2, 4094] (inclusive) so defined check
is not required there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm