softlayer-python icon indicating copy to clipboard operation
softlayer-python copied to clipboard

Add Devices with Trunks to vlan detail

Open edsonarios opened this issue 3 years ago • 0 comments

Issue link #1718

softlayer-python/ () $ slcli vlan detail -h
Usage: slcli vlan detail [OPTIONS] IDENTIFIER

        Get details about a VLAN.

┌────┬───────────────┬─────────────────────────────┐
│    │ identifier    │                             │
│    │ --no-vs       │ Hide virtual server listing │
│    │ --no-hardware │ Hide hardware listing       │
│    │ --no-trunks   │ Hide devices with trunks    │
│ -h │ --help        │ Show this message and exit. │
└────┴───────────────┴─────────────────────────────┘

softlayer-python/ () $ slcli vlan detail 1404269
┌──────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────┐
│             name │ value                                                                                                │
├──────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤
│               id │ 1404269                                                                                              │
│           number │ 1632                                                                                                 │
│       datacenter │ Dallas 10                                                                                            │
│   primary_router │ bcr01a.dal10.softlayer.com                                                                           │
│ Gateway/Firewall │ -                                                                                                    │
│          subnets │ ┌─────────┬───────────────┬─────────────────┬───────────────┬────────────────────┬────────────┐      │
│                  │ │   id    │  identifier   │     netmask     │    gateway    │        type        │ usable ips │      │
│                  │ ├─────────┼───────────────┼─────────────────┼───────────────┼────────────────────┼────────────┤      │
│                  │ │ 2290190 │ 10.176.39.128 │ 255.255.255.192 │ 10.176.39.129 │ ADDITIONAL_PRIMARY │     61     │      │
│                  │ └─────────┴───────────────┴─────────────────┴───────────────┴────────────────────┴────────────┘      │
│               vs │ none                                                                                                 │
│         hardware │ none                                                                                                 │
│           trunks │ ┌──────────────────────────┬────────┬──────────────────────────────────────────────────────────────┐ │
│                  │ │          device          │  port  │                             tags                             │ │
│                  │ ├──────────────────────────┼────────┼──────────────────────────────────────────────────────────────┤ │
│                  │ │ host17.vmware.chechu.com │ eth0/2 │ tape tool: vmware-demo-lab-chechu, tape tool: chechu-testing │ │
│                  │ │ host16.vmware.chechu.com │ eth0/2 │ tape tool: vmware-demo-lab-chechu, tape tool: chechu-testing │ │
│                  │ │ host15.vmware.chechu.com │ eth0/2 │ tape tool: vmware-demo-lab-chechu, tape tool: chechu-testing │ │
│                  │ └──────────────────────────┴────────┴──────────────────────────────────────────────────────────────┘ │
└──────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────┘

edsonarios avatar Aug 09 '22 12:08 edsonarios