Jas d548942645 Add port list command
This patch adds the ability to list all created ports

Change-Id: Ie1a48c203cabc96346a4950f21b83493d58a66a5
Partial-bug: #1519909
Partially-implements: blueprint neutron-client
2016-03-07 11:17:31 -06:00

2.2 KiB

port

Network v2

port create

Create new port

port create

os port create
    --network <network>
    [--fixed-ip subnet=<subnet>,ip-address=<ip-address>]
    [--device-id <device-id>]
    [--device-owner <device-owner>]
    [--vnic-type <vnic-type>]
    [--binding-profile <binding-profile>]
    [--host-id <host-id>]
    [--enable | --disable]
    [--mac-address <mac-address>]
    [--project <project> [--project-domain <project-domain>]]
    <name>

--network <network>

Network this port belongs to (name or ID)

--fixed-ip subnet=<subnet>,ip-address=<ip-address>

Desired IP and/or subnet (name or ID) for this port: subnet=<subnet>,ip-address=<ip-address> (this option can be repeated)

--device-id <device-id>

Device ID of this port

--device-owner <device-owner>

Device owner of this port

--vnic-type <vnic-type>

VNIC type for this port (direct | direct-physical | macvtap | normal(default) | baremetal)

--binding-profile <binding-profile>

Custom data to be passed as binding:profile: <key>=<value> (this option can be repeated)

--host-id <host-id>

The ID of the host where the port is allocated

--enable

Enable port (default)

--disable

Disable port

--mac-address <mac-address>

MAC address of this port

--project <project>

Owner's project (name or ID)

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

Name of this port

port delete

Delete port(s)

port delete

os port delete
    <port> [<port> ...]




Port(s) to delete (name or ID)

port list

List ports

port list

os port list

port show

Display port details

port show

os port show
    <port>




Port to display (name or ID)