[pve-devel] [PATCH] add vlan aware bridge ifupdown script v2

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jul 28 09:38:25 CEST 2015


> +      if [[ $port =~ ^(eth|bond|wlan)[0-9]{1,2}$ ]]

Isn't there a better way to do this?
Like checking the interface type via /proc? Because otherwise we end up
with more threads like:
<http://forum.proxmox.com/threads/22504-Unable-to-see-Infiniband-interfaces-in-Proxmox>

Restricting interfaces to names has always been problematic.
We already have a problem when someone installes pve packages from a
normal debian distribution after enabling systemd's interface naming
scheme.




More information about the pve-devel mailing list