diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2019-12-26 13:14:24 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2019-12-26 13:14:24 +0000 |
commit | 4fa0b07c7c59f3e31080dc6f18be5e9459b53ac1 (patch) | |
tree | 56c75d11be698c6bebf97f9d2a2c1df1460a521d /sysconf/65-vyatta-net.rules | |
parent | 0b8818dec45567d794b1d648e37639f28df8e64a (diff) | |
download | vyatta-cfg-system-4fa0b07c7c59f3e31080dc6f18be5e9459b53ac1.tar.gz vyatta-cfg-system-4fa0b07c7c59f3e31080dc6f18be5e9459b53ac1.zip |
T1903: Implement predefined interface naming for VMWare
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" |