oxidecomputer / omicron

Omicron: Oxide control plane
Mozilla Public License 2.0
252 stars 40 forks source link

oxide hardware switch-port show-status should display port name for each row in Receiver Power #7146

Open taspelund opened 3 days ago

taspelund commented 3 days ago

Currently, oxide hardware switch-port show-status has a section for Receiver Power under each switch, but it doesn't list the port name for those rows.

✕ treyaspelund@Tallon-IV 12:30:42 PM | ~/Downloads
‣ ./oxide --profile colo-admin system hardware switch-port show-status
switch0
=======
[snip]

Receiver Power                                                               Transmitter Bias Current          Transmitter Power
[Average(1.3845), Average(1.2108), Average(1.1593), Average(1.0652)]         [47.88, 48.45, 47.88, 47.88]      [0.76060003, 0.6331, 0.86630005, 1.1315]
[Average(1.5959), Average(1.1918), Average(1.0427), Average(1.2492)]         [43.522, 43.276, 43.866, 43.658]  [1.51, 1.4474, 1.6165999, 1.8414]
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
-                                                                            -                                 -
[Average(1.2421), Average(0.9875001), Average(0.89040005), Average(1.0207)]  [47.88, 47.88, 47.88, 47.88]      [1.0199, 0.8388, 1.0103, 1.055]
-                                                                            -                                 -
[snip]

There needs to be a way to visually correlate each row back to a port name, e.g. by adding a Port Name column to this section.