summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2016-06-16 16:06:35 -0500
committerRichard Theis <rtheis@us.ibm.com>2016-06-20 15:42:56 -0500
commit5cc62d90b03714d65af04c73e01a89ac8d96c895 (patch)
treeae62a8d52e2434def9cbeb2140dfa879b68a8d9d /doc/source/command-objects
parent40004b5d80689f9f9cd802b1487f8e78830e6d4f (diff)
downloadpython-openstackclient-5cc62d90b03714d65af04c73e01a89ac8d96c895.tar.gz
Support JSON data for port binding profile
Update the "--binding-profile" option on the "port create" and "port set" commands to support both <key>=<value> and JSON input for the port custom binding profile data. The JSON input is sometimes needed to maintain the value type (e.g. integer) for more advanced data. The port custom binding profile data is unique across neutron so a custom argparse.Action class was created instead of writting a generic class in osc-lib. Change-Id: I82ac6d4f95afdc866f5282fc00d390f850f54d21 Implements: blueprint neutron-client
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/port.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/source/command-objects/port.rst b/doc/source/command-objects/port.rst
index e4cf2cd2..880161f9 100644
--- a/doc/source/command-objects/port.rst
+++ b/doc/source/command-objects/port.rst
@@ -54,7 +54,8 @@ Create new port
.. option:: --binding-profile <binding-profile>
- Custom data to be passed as binding:profile: <key>=<value>
+ Custom data to be passed as binding:profile. Data may
+ be passed as <key>=<value> or JSON.
(repeat option to set multiple binding:profile data)
.. option:: --host <host-id>
@@ -162,7 +163,8 @@ Set port properties
.. option:: --binding-profile <binding-profile>
- Custom data to be passed as binding:profile: <key>=<value>
+ Custom data to be passed as binding:profile. Data may
+ be passed as <key>=<value> or JSON.
(repeat option to set multiple binding:profile data)
.. option:: --no-binding-profile