[pve-devel] [PATCH common] fix #2368: network: extend infiniband recognition in regex

Lorenz Stechauner l.stechauner at proxmox.com
Fri Aug 6 13:07:11 CEST 2021


Signed-off-by: Lorenz Stechauner <l.stechauner at proxmox.com>
---
 src/PVE/Network.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Network.pm b/src/PVE/Network.pm
index bb574e0..c6d3ee1 100644
--- a/src/PVE/Network.pm
+++ b/src/PVE/Network.pm
@@ -16,7 +16,7 @@ use Socket qw(NI_NUMERICHOST NI_NUMERICSERV);
 
 # host network related utility functions
 
-our $PHYSICAL_NIC_RE = qr/(?:eth\d+|en[^:.]+|ib\d+)/;
+our $PHYSICAL_NIC_RE = qr/(?:eth\d+|en[^:.]+|ib[^:.]+/);
 
 our $ipv4_reverse_mask = [
     '0.0.0.0',
-- 
2.30.2






More information about the pve-devel mailing list