summaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/64-vyos-vmware-net.rules
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-20 20:48:58 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-20 20:48:58 +0100
commit511c127832667f5db218cf803ad88355f873d399 (patch)
tree8a322e8bd9b9260c7ffdc4f80320058017f43c32 /src/etc/udev/rules.d/64-vyos-vmware-net.rules
parent44b7157addd4427e1bee20e9918ccc6a22814eec (diff)
downloadvyos-1x-511c127832667f5db218cf803ad88355f873d399.tar.gz
vyos-1x-511c127832667f5db218cf803ad88355f873d399.zip
udev: import rule file from vyatta-cfg-system
Diffstat (limited to 'src/etc/udev/rules.d/64-vyos-vmware-net.rules')
-rw-r--r--src/etc/udev/rules.d/64-vyos-vmware-net.rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/64-vyos-vmware-net.rules b/src/etc/udev/rules.d/64-vyos-vmware-net.rules
new file mode 100644
index 000000000..66a4a069b
--- /dev/null
+++ b/src/etc/udev/rules.d/64-vyos-vmware-net.rules
@@ -0,0 +1,14 @@
+ATTR{[dmi/id]sys_vendor}!="VMware, Inc.", GOTO="end_vmware_nic"
+
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet0", ENV{VYOS_IFNAME}="eth0"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet1", ENV{VYOS_IFNAME}="eth1"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet2", ENV{VYOS_IFNAME}="eth2"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet3", ENV{VYOS_IFNAME}="eth3"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet4", ENV{VYOS_IFNAME}="eth4"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet5", ENV{VYOS_IFNAME}="eth5"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet6", ENV{VYOS_IFNAME}="eth6"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet7", ENV{VYOS_IFNAME}="eth7"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet8", ENV{VYOS_IFNAME}="eth8"
+ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet9", ENV{VYOS_IFNAME}="eth9"
+
+LABEL="end_vmware_nic"