Skip to content
Snippets Groups Projects

turris: get slot name from label instead of port id

Merged Martin Matějek requested to merge fix/turris1x-read-phys-label-instead-of-port-id into master
All threads resolved!

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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply