From 5cc62d90b03714d65af04c73e01a89ac8d96c895 Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Thu, 16 Jun 2016 16:06:35 -0500 Subject: Support JSON data for port binding profile Update the "--binding-profile" option on the "port create" and "port set" commands to support both = 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 --- doc/source/command-objects/port.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/source/command-objects') 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 - Custom data to be passed as binding:profile: = + Custom data to be passed as binding:profile. Data may + be passed as = or JSON. (repeat option to set multiple binding:profile data) .. option:: --host @@ -162,7 +163,8 @@ Set port properties .. option:: --binding-profile - Custom data to be passed as binding:profile: = + Custom data to be passed as binding:profile. Data may + be passed as = or JSON. (repeat option to set multiple binding:profile data) .. option:: --no-binding-profile -- cgit v1.2.1