[pve-devel] [PATCH pve-common 1/1] inotify/interfaces: fall back to PHYSICAL_NIC_RE
Stefan Hanreich
s.hanreich at proxmox.com
Mon Aug 4 13:11:25 CEST 2025
To preserve backwards compatibility, we fall back to the
PHYSICAL_NIC_RE ensuring that everything that got detected as physical
interface before, gets detected afterwards as well.
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
src/PVE/INotify.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index d7e5add..bbcb9f8 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1145,7 +1145,8 @@ OUTER:
$ifaces->{$raw_iface}->{exists} = 0;
$d->{exists} = 0;
}
- } elsif ($ip_link && PVE::Network::ip_link_is_physical($ip_link)) {
+ } elsif (($ip_link && PVE::Network::ip_link_is_physical($ip_link))
+ || $iface =~ m/^$PVE::Network::PHYSICAL_NIC_RE$/) {
if (!$d->{ovs_type}) {
$d->{type} = 'eth';
} elsif ($d->{ovs_type} eq 'OVSPort') {
--
2.47.2
More information about the pve-devel
mailing list