diff options
author | Daniil Baturin <daniil@vyos.io> | 2020-03-09 19:17:49 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2020-03-09 19:17:49 +0200 |
commit | 5dd56053319f1af72d8d684151873e559ed1de46 (patch) | |
tree | f67c55a9ad1b729b3bfa15c57721c1f2db2b5290 /sysconf/65-vyatta-net.rules | |
parent | f1467d4c193f02bd17b31630045cd53b7109b9e3 (diff) | |
parent | 72516c872e1690895d0269cafcb87e4e44bf153c (diff) | |
download | vyatta-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.rules | 7 |
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" |