From ee02ca93ec7be75edd0ec4c0e07fe5d51a45edc6 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Mon, 8 Nov 2021 17:20:03 +0000 Subject: interface-names: T3871: Add temporary interface names to properly renaming --- src/etc/udev/rules.d/62-temporary-interface-rename.rules | 1 + src/etc/udev/rules.d/65-vyos-net.rules | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 src/etc/udev/rules.d/62-temporary-interface-rename.rules (limited to 'src/etc/udev/rules.d') 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" -- cgit v1.2.3