73-special-net-names.rules 969 B

1234567891011121314
  1. # On Dell PowerEdge systems, the iDRAC7 and later support a USB Virtual NIC
  2. # which terminates in the iDRAC. Help identify this with 'idrac'
  3. ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", ATTRS{idVendor}=="413c", ATTRS{idProduct}=="a102", NAME="idrac"
  4. # On IBM systems the Integrated Management Module is reachable using a
  5. # # USB Virtual NIC.
  6. ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", \
  7. ATTRS{idVendor}=="04b3", ATTRS{idProduct}=="0325", NAME="ibmimm"
  8. # ibmveth devices' $DEVPATH number is tied to (virtual) hardware (slot id
  9. # selected in the HMC), thus this provides a reliable naming (e. g.
  10. # "/devices/vio/30000002/net/eth1"); we ignore the bus number, as
  11. # there should only ever be one bus, and then remove leading zeros
  12. ACTION=="add", SUBSYSTEM=="net", NAME=="", DRIVERS=="ibmveth", PROGRAM="/bin/sh -ec 'D=$${DEVPATH#*/vio/}; D=$${D%%%%/*}; D=$${D#????}; D=$${D#0}; D=$${D#0}; D=$${D#0}; D=$${D#0}; echo $${D:-0}'", NAME="ibmveth$result"