]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
add and use physical NIC regexp
[pve-common.git] / src / PVE / Network.pm
index a659a5c4a4f5a31ec66e2ca64ebaa7783aed4d9f..627e7647050c3b97ad3c444c98941437a770c848 100644 (file)
@@ -14,6 +14,8 @@ use Net::IP;
 
 # host network related utility functions
 
+our $PHYSICAL_NIC_RE = qr/(?:eth\d+|en[^:.]+|ib\d+)/;
+
 our $ipv4_reverse_mask = [
     '0.0.0.0',
     '128.0.0.0',