]> git.proxmox.com Git - pve-common.git/commit
network: add|del_fdb: fix learning check
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 21 Nov 2022 09:54:04 +0000 (10:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 10:23:04 +0000 (11:23 +0100)
commit99fc81231e09febc4ed9bdbae8a87eca73b0dc3e
tree32bf54f0c43a28c59f2ec141c9e4f1d6a941438c
parentae7332752a8132163eb63aee5f3e4b2410897175
network: add|del_fdb: fix learning check

ovs port don't have sysfs path
"/sys/class/net/$iface/brport/learning"

We need to check if the value is undef too

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/PVE/Network.pm