summaryrefslogtreecommitdiff
path: root/quantumclient/quantum/client.py
diff options
context:
space:
mode:
authorYong Sheng Gong <gongysh@cn.ibm.com>2012-06-24 16:11:11 +0800
committerYong Sheng Gong <gongysh@cn.ibm.com>2012-06-25 18:19:18 +0800
commit50c46f61d1a76b5429c20ad61203afedc7c508bb (patch)
tree96ea2c8215533a36441a2005e4f1c15b822382a6 /quantumclient/quantum/client.py
parentdd803f8e26f4c3a3b8f1b9e7526d0e1980b2491c (diff)
downloadpython-neutronclient-0.1.0.tar.gz
add --fixed-ip argument to create port0.1.0
add --fixed-ip argument to create port and add list and dict type for unknow option now we can use known option feature: quantumv2 create_port --fixed-ip subnet_id=<id>,ip_address=<ip> --fixed-ip subnet_id=<id>, ip_address=<ip2> network_id or unknown option feature: one ip: quantumv2 create_port network_id --fixed_ips type=dict list=true subnet_id=<id>,ip_address=<ip> two ips: quantumv2 create_port network_id --fixed_ips type=dict subnet_id=<id>,ip_address=<ip> subnet_id=<id>,ip_address=<ip2> to create port Please download: https://review.openstack.org/#/c/8794/4 and set core_plugin = quantum.db.db_base_plugin_v2.QuantumDbPluginV2 on quantum server side Patch 2: support cliff 1.0 Patch 3: support specify auth strategy, for now, any other auth strategy than keystone will disable auth, format port output Patch 4: format None as '' when outputing, deal with list of dict, add QUANTUMCLIENT_DEBUG env to enable http req/resp print, which is helpful for testing nova integration Patch 5: fix interactive mode, and initialize_app problem Change-Id: I693848c75055d1947862d55f4b538c1dfb1e86db
Diffstat (limited to 'quantumclient/quantum/client.py')
-rw-r--r--quantumclient/quantum/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/quantumclient/quantum/client.py b/quantumclient/quantum/client.py
index e2c059f..7aa1f15 100644
--- a/quantumclient/quantum/client.py
+++ b/quantumclient/quantum/client.py
@@ -64,5 +64,6 @@ def make_client(instance):
region_name=instance._region_name,
auth_url=instance._auth_url,
endpoint_url=url,
- token=instance._token)
+ token=instance._token,
+ auth_strategy=instance._auth_strategy)
return client