turris: get slot name from label instead of port id
Read of_node/label
instead of phys_switch_id
and don't try to concat
port label by lan + port_id.
Besides that, it will fix discrepancies between phys_switch_id
and
port label on Turris 1.x, in which case they are opposite of each other,
for instance:
- LAN1 <-> port 4 <-> lan5
- [...]
- LAN5 <-> port 0 <-> lan1
Closes: turris/reforis/reforis#364 (closed)
Note: Refactoring of code for Mox and Omnia is intentionally postponed, because detection and reporting interfaces hasn't changed for quite a long time and the current state is considered as expected behavior -at least from user point of view ;-)
Edited by Martin Matějek