hichtakk/nsxctl

improve show segment

mu853 opened this issue · 0 comments

mu853 commented

display vlans, named teaming policy and connected status.
fix gateway column.
sort results by name.

from

$ nsxctl show segment 
ID          Name        Gateway   Subnet            State
LS-02       LS-02       tier-0s   2.2.2.2/24        UP
T0-Uplink   T0-Uplink   -         -                 UP
VLAN-20     VLAN-20     -         -                 UP
All-Trunk   All-Trunk   -         -                 UP
LS-01       LS-01       tier-1s   172.16.10.1/24    UP

to

$ nsxctl show segment 
ID          Name        Gateway   Subnet            Vlans    Teaming     AdminState   Connected
All-Trunk   All-Trunk   -         -                 0-4094   -           UP           ON
LS-01       LS-01       T1-A      172.16.10.1/24    -        -           UP           ON
LS-02       LS-02       T0-A      2.2.2.2/24        -        -           UP           OFF
T0-Uplink   T0-Uplink   -         -                 0        -           UP           ON
VLAN-0      VLAN-0      -         -                 0        -           UP           ON
VLAN-20     VLAN-20     -         -                 20       teaming-1   UP           ON