Skip to content

Commit

Permalink
Sort interface list
Browse files Browse the repository at this point in the history
  • Loading branch information
luqasz committed Oct 21, 2023
1 parent 72893b3 commit 4f097ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion napalm_ros/ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def get_vlans(self):
ifs = set(chain(untagged, tagged))
result[vid] = {
"name": "",
"interfaces": list(ifs),
"interfaces": sorted(list(ifs)),
}
return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"10": {
"name": "",
"interfaces": [
"ether2",
"ether1"
"ether1",
"ether2"
]
},
"20": {
"name": "",
"interfaces": [
"ether2",
"ether1"
"ether1",
"ether2"
]
}
}

0 comments on commit 4f097ef

Please sign in to comment.