Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • T TurrisHW
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TurrisTurris
  • TurrisHW
  • Merge requests
  • !13

Return interfaces sorted based on interface name

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Martin Matějek requested to merge feature/19-sort-interfaces-by-natural-sort-order into master May 31, 2022
  • Overview 6
  • Commits 1
  • Pipelines 7
  • Changes 6

Sort interfaces by natural sort order before returning result dictionary from ifaces_array2dict().

Reading interfaces from /sys might return them in different order based on used tool. See difference between order of items for os.listdir() vs ls in shell.

It will be more useful for consumer of turrishw to get interfaces sorted in resulting dictionary to avoid dealing with the possibly random order of interfaces.

Edited Jun 13, 2022 by Martin Matějek
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/19-sort-interfaces-by-natural-sort-order