Hide Forgot
Switch drivers uses phys_port_name attribute to pass front panel port name to user. Use it to generate netdev names. Upstream implementation: https://github.com/systemd/systemd/commit/4887b656c22af059d4e833de7b56544f24951184
What about existing installation, wouldn't this change the names of devices for those systems?
No, phys_port_name attribute is reported only by switchdev drivers (mlxsw & rocker) that are not supported yet and will be supported in RHEL7.4. So there are no existing installations.
Ok great, than in that case devel_ack+
https://github.com/lnykryn/systemd-rhel/pull/80
Thanks Lukas... I have tested your backport and everything works fine.
qa_ack+ for 7.4
fix merged to upstream staging branch -> https://github.com/lnykryn/systemd-rhel/commit/192545bc67fed763ac54761ca067b9c2f93ecdd1 -> post
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2297
Hi Ivan, #cat /etc/udev/rules.d/10-local.rules SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}=="7cfe90ff2cc0", \ ATTR{phys_port_name}!="", NAME="sw1$attr{phys_port_name}" this bug means i can use phys_port_name in udev rules now? if this bug is not resolved, i can't use phys_port_name in udev rules ? I just want to confirm this for writing case. thanks.
(In reply to LiLiang from comment #12) > Hi Ivan, > > #cat /etc/udev/rules.d/10-local.rules > SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}=="7cfe90ff2cc0", \ > ATTR{phys_port_name}!="", NAME="sw1$attr{phys_port_name}" > > this bug means i can use phys_port_name in udev rules now? Yes, but you don't need such rule. With this BZ resolved udev will use phys_port_name by default. > if this bug is not resolved, i can't use phys_port_name in udev rules ? No, if this bug is not resolved then udev won't use phys_port_name by default but if you have local rule like the above one then it will work.
(In reply to Ivan Vecera from comment #13) > (In reply to LiLiang from comment #12) > > Hi Ivan, > > > > #cat /etc/udev/rules.d/10-local.rules > > SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}=="7cfe90ff2cc0", \ > > ATTR{phys_port_name}!="", NAME="sw1$attr{phys_port_name}" > > > > this bug means i can use phys_port_name in udev rules now? > Yes, but you don't need such rule. With this BZ resolved udev will use > phys_port_name by default. > > > if this bug is not resolved, i can't use phys_port_name in udev rules ? > No, if this bug is not resolved then udev won't use phys_port_name by > default but if you have local rule like the above one then it will work. Thanks a lot:)
Hi Ivan, Where is the default udev rule ? I can't find it in "/etc/udev/rules.d/" . Do you think i need to write a test case to verify "the default interface name conform to the default rule" ?
(In reply to LiLiang from comment #15) > Hi Ivan, > > Where is the default udev rule ? I can't find it in "/etc/udev/rules.d/" . /usr/lib/udev/rules.d/ > Do you think i need to write a test case to verify "the default interface > name conform to the default rule" ? I don't think so.