diff options
| author | Colleen Murphy <colleen@puppetlabs.com> | 2015-02-16 23:21:00 -0800 |
|---|---|---|
| committer | Colleen Murphy <colleen@puppetlabs.com> | 2015-03-19 23:49:02 -0700 |
| commit | 6c224f5acfeb2288f2f4be41aee112fd01cbf4d0 (patch) | |
| tree | 9f8e460435c4f7410370438b5883eca218f7ccf4 /doc/source/command-objects/network.rst | |
| parent | 9400effd4b7653045657630e0909b3dc303ec59e (diff) | |
| download | python-openstackclient-6c224f5acfeb2288f2f4be41aee112fd01cbf4d0.tar.gz | |
Add project and domain params to network create
Without this patch, openstackclient has no way to specify to which
project a network belongs upon creation. Instead, it uses the project
ID that the user is authenticating with to fill the tenant_id column.
This is a problem because an admin user is unable to specify a project
for a non-admin network. To fix this and to improve feature parity with
the neutron client, this patch adds project and domain parameters to
the network create command and uses the given project name to look up
the project ID.
Neutron does not allow the project to be changed after creation, so no
such parameter has been added to the neutron set command.
Neutron calls the field 'tenant_id', but this change exposes the
parameter as '--project' to support the newer terminology.
If no project is specified, the client defaults to the previous
behavior of using the auth project.
Change-Id: Ia33ff7d599542c5b88baf2a69b063a23089a3cc4
Diffstat (limited to 'doc/source/command-objects/network.rst')
| -rw-r--r-- | doc/source/command-objects/network.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/source/command-objects/network.rst b/doc/source/command-objects/network.rst index 0edd2980..dcba9f82 100644 --- a/doc/source/command-objects/network.rst +++ b/doc/source/command-objects/network.rst @@ -13,10 +13,20 @@ Create new network .. code:: bash os network create + [--domain <domain>] [--enable | --disable] + [--project <project>] [--share | --no-share] <name> +.. option:: --domain <domain> + + Owner's domain (name or ID)" + +.. option:: --project <project> + + Owner's project (name or ID) + .. option:: --enable Enable network (default) |
