TritonDataCenter / sdc-cloudapi

Triton Data Center Public HTTP API
Mozilla Public License 2.0
10 stars 24 forks source link

Network List should List subnet and address range if admin #77

Open Smithx10 opened 3 years ago

Smithx10 commented 3 years ago
arch@9d46dd2d-1178-ce83-cbc4-d396e4a24060 ~ ❯❯❯ triton networks -l
ID                                    NAME               SUBNET            GATEWAY        FABRIC  VLAN  PUBLIC
7a7d3510-c834-431d-9cf7-8e7219f3bb9a  My-Fabric-Network  192.168.128.0/22  192.168.128.1  true    2     false
d86b63bb-3d8b-4abf-94e9-9cad37d190d1  cloudops_dmz_0     -                 -              -       -     true
37a1cc60-ced2-4e59-a62f-1d40525dc8b8  cps_lan            -                 -              -       -     true
0eca2659-28cb-42af-bc45-0b5e4aa134cc  dev01              192.168.20.0/24   192.168.20.1   true    200   false
a14a8828-33ff-4546-96b2-649a7f78ad6f  dev02              192.168.21.0/24   192.168.21.1   true    201   false
68c9cd97-de9f-4108-9fcf-a9ae1dd7840b  sdc_nat            -                 -              -       -     true
6b6f4454-990e-4d19-a071-464e13487aa5  test123            10.20.30.0/24     -              true    2     false
a79485ce-4821-4731-978e-cb0d49df0e54  test4              10.20.31.0/24     -              true    2     false

I'm an admin on cps_lan, and users should know which address range they can provision.

danmcd commented 3 years ago

Please note your testing here. I'm assuming with the change in #80 in place you have better output than what's shown above?