From d1d4a40808741c416ecc51294fab78138f9184fa Mon Sep 17 00:00:00 2001 From: Jas Date: Thu, 28 Jan 2016 11:08:17 -0600 Subject: Add 'port create' command This patch adds usage of 'port create' in CLI Change-Id: I888af50784c3b6c7ec30552ade79f05a5e974711 Partial-bug: #1519909 Partially-implements: blueprint neutron-client --- doc/source/command-objects/port.rst | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/port.rst b/doc/source/command-objects/port.rst index 414b7437..0c91f3ac 100644 --- a/doc/source/command-objects/port.rst +++ b/doc/source/command-objects/port.rst @@ -4,6 +4,84 @@ port Network v2 +port create +----------- + +Create new port + +.. program:: port create +.. code:: bash + + os port create + --network + [--fixed-ip subnet=,ip-address=] + [--device-id ] + [--device-owner ] + [--vnic-type ] + [--binding-profile ] + [--host-id ] + [--enable | --disable] + [--mac-address ] + [--project [--project-domain ]] + + +.. option:: --network + + Network this port belongs to (name or ID) + +.. option:: --fixed-ip subnet=,ip-address= + + Desired IP and/or subnet (name or ID) for this port: + subnet=,ip-address= + (this option can be repeated) + +.. option:: --device-id + + Device ID of this port + +.. option:: --device-owner + + Device owner of this port + +.. option:: --vnic-type + + VNIC type for this port (direct | direct-physical | macvtap | normal(default) | baremetal) + +.. option:: --binding-profile + + Custom data to be passed as binding:profile: = + (this option can be repeated) + +.. option:: --host-id + + The ID of the host where the port is allocated + +.. option:: --enable + + Enable port (default) + +.. option:: --disable + + Disable port + +.. option:: --mac-address + + MAC address of this port + +.. option:: --project + + Owner's project (name or ID) + +.. option:: --project-domain + + Domain the project belongs to (name or ID). + This can be used in case collisions between project names exist. + +.. _port_create-name: +.. describe:: + + Name of this port + port delete ----------- -- cgit v1.2.1