summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorJas <singhj@us.ibm.com>2016-02-22 14:05:17 -0600
committerJas <singhj@us.ibm.com>2016-03-08 09:48:50 -0600
commite0d58641bba8cacab855ed5aa3b7506737470441 (patch)
tree6e797118d50c94aea33af3cfe21a21ac877fc163 /doc/source/command-objects
parent9ab7740dfd09a727975fa708ab96be591d8a4c39 (diff)
downloadpython-openstackclient-e0d58641bba8cacab855ed5aa3b7506737470441.tar.gz
Add 'port set' command
Add CLI support for the 'port set' command Change-Id: I2bea508e11290284aa64b1ab548a0bb61e7290d3 Partial-bug: #1519909 Partially-implements: blueprint neutron-client
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/port.rst62
1 files changed, 61 insertions, 1 deletions
diff --git a/doc/source/command-objects/port.rst b/doc/source/command-objects/port.rst
index 3083b075..e9c09173 100644
--- a/doc/source/command-objects/port.rst
+++ b/doc/source/command-objects/port.rst
@@ -45,7 +45,8 @@ Create new port
.. option:: --vnic-type <vnic-type>
- VNIC type for this port (direct | direct-physical | macvtap | normal(default) | baremetal)
+ VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal).
+ If unspecified during port creation, default value will be 'normal'.
.. option:: --binding-profile <binding-profile>
@@ -108,6 +109,65 @@ List ports
os port list
+port set
+--------
+
+Set port properties
+
+.. program:: port set
+.. code:: bash
+
+ os port set
+ [--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]
+ <port>
+
+.. option:: --fixed-ip subnet=<subnet>,ip-address=<ip-address>
+
+ Desired IP and/or subnet for this port:
+ subnet=<subnet>,ip-address=<ip-address>
+ (you can repeat this option)
+
+.. option:: --device-id <device-id>
+
+ Device ID of this port
+
+.. option:: --device-owner <device-owner>
+
+ Device owner of this port
+
+.. option:: --vnic-type <vnic-type>
+
+ VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal).
+ If unspecified during port creation, default value will be 'normal'.
+
+.. option:: --binding-profile <binding-profile>
+
+ Custom data to be passed as binding:profile: <key>=<value>
+ (this option can be repeated)
+
+.. option:: --host-id <host-id>
+
+ The ID of the host where the port is allocated
+
+.. option:: --enable
+
+ Enable port
+
+.. option:: --disable
+
+ Disable port
+
+.. _port_set-port:
+.. describe:: <port>
+
+ Port to modify (name or ID)
+
port show
---------