it's not really SLE-only, so I opted to name it udev-persistent-ifnames instead of udev-branding-SLE OBS-URL: https://build.opensuse.org/request/show/308347 OBS-URL: https://build.opensuse.org/package/show/Base:System/udev-persistent-ifnames?expand=0&rev=1
20 lines
651 B
Plaintext
20 lines
651 B
Plaintext
# do not edit this file, it will be overwritten on update
|
|
#
|
|
# rename SRIOV virtual function interfaces
|
|
|
|
ACTION=="remove", GOTO="net-sriov-names_end"
|
|
SUBSYSTEM!="net", GOTO="net-sriov-names_end"
|
|
KERNEL!="eth*", GOTO="net-sriov-names_end"
|
|
NAME=="?*", GOTO="net-sriov-names_end"
|
|
|
|
IMPORT{cmdline}="net.ifnames"
|
|
ENV{net.ifnames}=="1", GOTO="net-sriov-names_end"
|
|
|
|
SUBSYSTEM=="net", SUBSYSTEMS=="pci", ACTION=="add", NAME=="?*", ENV{INTERFACE_NEW}="$name"
|
|
SUBSYSTEM=="net", SUBSYSTEMS=="pci", ACTION=="add", IMPORT{program}="net-set-sriov-names"
|
|
|
|
# rename interface if needed
|
|
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
|
|
|
|
LABEL="net-sriov-names_end"
|