summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@dreamhost.com>2013-07-02 18:44:42 -0400
committerMark McClain <mark.mcclain@dreamhost.com>2013-07-03 11:56:44 -0400
commit93ac15bfeb51ee6a097d878e4eeef69cd2b3a6bc (patch)
tree39acb2ba93a28e1f03a3e6d739845758cd58715b /doc
parent8ed38707b12ae6e77480ae8d8542712d63b7fc70 (diff)
downloadpython-neutronclient-2.2.4.tar.gz
Rename quantumclient to neutronclient2.2.4
Implements Blueprint: remove-use-of-quantum Change-Id: Idebe92d56d277435ffd23f292984f9b8b8fdb2df
Diffstat (limited to 'doc')
-rw-r--r--doc/source/conf.py2
-rw-r--r--doc/source/index.rst22
2 files changed, 12 insertions, 12 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index fba29db..1d6023e 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -4,7 +4,7 @@
import sys
import os
-project = 'python-quantumclient'
+project = 'python-neutronclient'
# -- General configuration ---------------------------------------------
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f68f1e1..612a41e 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1,19 +1,19 @@
Python bindings to the OpenStack Network API
============================================
-In order to use the python quantum client directly, you must first obtain an auth token and identify which endpoint you wish to speak to. Once you have done so, you can use the API like so::
+In order to use the python neutron client directly, you must first obtain an auth token and identify which endpoint you wish to speak to. Once you have done so, you can use the API like so::
>>> import logging
- >>> from quantumclient.quantum import client
+ >>> from neutronclient.neutron import client
>>> logging.basicConfig(level=logging.DEBUG)
- >>> quantum = client.Client('2.0', endpoint_url=OS_URL, token=OS_TOKEN)
- >>> quantum.format = 'json'
+ >>> neutron = client.Client('2.0', endpoint_url=OS_URL, token=OS_TOKEN)
+ >>> neutron.format = 'json'
>>> network = {'name': 'mynetwork', 'admin_state_up': True}
- >>> quantum.create_network({'network':network})
- >>> networks = quantum.list_networks(name='mynetwork')
+ >>> neutron.create_network({'network':network})
+ >>> networks = neutron.list_networks(name='mynetwork')
>>> print networks
>>> network_id = networks['networks'][0]['id']
- >>> quantum.delete_network(network_id)
+ >>> neutron.delete_network(network_id)
Command-line Tool
@@ -27,21 +27,21 @@ In order to use the CLI, you must provide your OpenStack username, password, ten
The command line tool will attempt to reauthenticate using your provided credentials for every request. You can override this behavior by manually supplying an auth token using ``--os-url`` and ``--os-auth-token``. You can alternatively set these environment variables::
- export OS_URL=http://quantum.example.org:9696/
+ export OS_URL=http://neutron.example.org:9696/
export OS_TOKEN=3bcc3d3a03f44e3d8377f9247b0ad155
-If quantum server does not require authentication, besides these two arguments or environment variables (We can use any value as token.), we need manually supply ``--os-auth-strategy`` or set the environment variable::
+If neutron server does not require authentication, besides these two arguments or environment variables (We can use any value as token.), we need manually supply ``--os-auth-strategy`` or set the environment variable::
export OS_AUTH_STRATEGY=noauth
-Once you've configured your authentication parameters, you can run ``quantum -h`` to see a complete listing of available commands.
+Once you've configured your authentication parameters, you can run ``neutron -h`` to see a complete listing of available commands.
Release Notes
=============
2.0
-----
-* support Quantum API 2.0
+* support Neutron API 2.0
2.2.0
-----