summaryrefslogtreecommitdiff
path: root/sysconf/65-vyatta-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/65-vyatta-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/65-vyatta-net.rules')
-rw-r--r--sysconf/65-vyatta-net.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconf/65-vyatta-net.rules b/sysconf/65-vyatta-net.rules
index 0f4b9006..2b48c121 100644
--- a/sysconf/65-vyatta-net.rules
+++ b/sysconf/65-vyatta-net.rules
@@ -13,6 +13,13 @@ KERNEL!="eth*|wlan*", GOTO="vyatta_net_end"
# ignore "secondary" monitor interfaces of mac80211 drivers
KERNEL=="wlan*", ATTRS{type}=="803", GOTO="vyatta_net_end"
+# If using VyOS predefined names
+ENV{VYOS_IFNAME}!="eth*", GOTO="end_vyos_predef_names"
+
+DRIVERS=="?*", PROGRAM="vyatta_net_name %k $attr{address} $env{VYOS_IFNAME}", NAME="%c", GOTO="vyatta_net_end"
+
+LABEL="end_vyos_predef_names"
+
# ignore interfaces without a driver link like bridges and VLANs
DRIVERS=="?*", PROGRAM="vyatta_net_name %k $attr{address}", NAME="%c"