Skip to content

swadm should list transceivers in port order #105

@bnaecker

Description

@bnaecker

swadm sp xcvr ls currently lists transceivers in lexicographic order:

root@oxz_switch0:~# swadm sp xcvr ls
Port    State      Reset  Interrupt  Power  Power control  Vendor           Part No.          Serial No.
qsfp0   supported  false  false      low    Hardware       Arista Networks  CA                Q210606290005
qsfp11  supported  false  true       high   Software       FINISAR CORP.    FTLC1156RDPL      X52ANPQ
qsfp26  supported  false  true       high   Software       Intel Corp       SPTSLP3SLCDE      PJF123470C42P
qsfp3   supported  false  true       high   Software       Intel Corp       SPTSLP3SLCDF      CRF1220403R4P
qsfp4   supported  false  true       high   Software       FINISAR CORP.    FTLC1159RGPL      RB9A0BV
qsfp5   supported  false  true       low    Hardware       FINISAR CORP     FTL410QE4C-1Y     UBGB7BW
qsfp6   supported  false  true       high   Software       FINISAR CORP     FTLC9152RGPL      UARAXLZ
qsfp7   supported  false  true       high   Software       FS               QSFP28-BIDI-100G  C2204264794
qsfp8   supported  false  true       high   Software       FINISAR CORP     FTLC9558REPM      X6HAW9Q
qsfp9   supported  false  true       high   Software       FOIT             AFBR-89BDDZ       AF2148N000D

That should be in order of port ID. At some point in the past this worked, so I suspect it broke when we switched the dpd_client type, maybe as part of a change from a replaced type to a true generated one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions