summaryrefslogtreecommitdiff
path: root/sysconf/64-vyos-vmware-net.rules
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-03-09 19:17:49 +0200
committerDaniil Baturin <daniil@vyos.io>2020-03-09 19:17:49 +0200
commit5dd56053319f1af72d8d684151873e559ed1de46 (patch)
treef67c55a9ad1b729b3bfa15c57721c1f2db2b5290 /sysconf/64-vyos-vmware-net.rules
parentf1467d4c193f02bd17b31630045cd53b7109b9e3 (diff)
parent72516c872e1690895d0269cafcb87e4e44bf153c (diff)
downloadvyatta-cfg-system-vyos/1.2.5.tar.gz
vyatta-cfg-system-vyos/1.2.5.zip
Merge branch 'crux' of github.com:vyos/vyatta-cfg-system into cruxvyos/1.2.5
Diffstat (limited to 'sysconf/64-vyos-vmware-net.rules')
-rw-r--r--sysconf/64-vyos-vmware-net.rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysconf/64-vyos-vmware-net.rules b/sysconf/64-vyos-vmware-net.rules
new file mode 100644
index 00000000..66a4a069
--- /dev/null
+++ b/sysconf/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"