Skip to content

Commit a3f6ee7

Browse files
committed
Fix an issue: the ports should be in nature order in sfputil show presence
Signed-off-by: Stephen Sun <[email protected]>
1 parent 5fa3e79 commit a3f6ee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sfputil/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ def presence(port):
715715

716716
logical_port_list = [port]
717717

718+
logical_port_list = natsort.natsorted(logical_port_list)
718719
for logical_port_name in logical_port_list:
719720
ganged = False
720721
i = 1

0 commit comments

Comments
 (0)