summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-11-10 08:39:11 +0700
committerGitHub <noreply@github.com>2021-11-10 08:39:11 +0700
commit552ab74b49a44b6cd830fbdc13d40d1633f3c6cf (patch)
tree550eded1f03e3479231d9df89253f9debb392c43 /src/etc
parent73be449b1cd09f3ca86400753630fb4804fbeca7 (diff)
parentee02ca93ec7be75edd0ec4c0e07fe5d51a45edc6 (diff)
downloadvyos-1x-552ab74b49a44b6cd830fbdc13d40d1633f3c6cf.tar.gz
vyos-1x-552ab74b49a44b6cd830fbdc13d40d1633f3c6cf.zip
Merge pull request #1067 from DmitriyEshenko/current-08112021-fix-net-names
interface-names: T3871: Add temporary interface names to properly ren…
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/udev/rules.d/62-temporary-interface-rename.rules1
-rw-r--r--src/etc/udev/rules.d/65-vyos-net.rules5
2 files changed, 2 insertions, 4 deletions
diff --git a/src/etc/udev/rules.d/62-temporary-interface-rename.rules b/src/etc/udev/rules.d/62-temporary-interface-rename.rules
new file mode 100644
index 000000000..4a579dcab
--- /dev/null
+++ b/src/etc/udev/rules.d/62-temporary-interface-rename.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth*", DRIVERS=="?*", NAME="e$env{IFINDEX}"
diff --git a/src/etc/udev/rules.d/65-vyos-net.rules b/src/etc/udev/rules.d/65-vyos-net.rules
index c8d5750dd..32ae352de 100644
--- a/src/etc/udev/rules.d/65-vyos-net.rules
+++ b/src/etc/udev/rules.d/65-vyos-net.rules
@@ -4,11 +4,8 @@
ACTION!="add", GOTO="vyos_net_end"
SUBSYSTEM!="net", GOTO="vyos_net_end"
-# ignore the interface if a name has already been set
-NAME=="?*", GOTO="vyos_net_end"
-
# Do name change for ethernet and wireless devices only
-KERNEL!="eth*|wlan*", GOTO="vyos_net_end"
+KERNEL!="eth*|wlan*|e*", GOTO="vyos_net_end"
# ignore "secondary" monitor interfaces of mac80211 drivers
KERNEL=="wlan*", ATTRS{type}=="803", GOTO="vyos_net_end"