Allow override of distributed router flag
When router_distributed=True is set in neutron.conf, user can't override this and create a centralized router through openstack client. Openstack client allows modifying routers from distributed to centralized after creation but not supporting centralized flag during creation. We allow centralized and distributed flags during router creation with this change. Closes-bug: #1664255 Change-Id: I75f72ca695338ad8c381cfa89fbb9d8e61ee7bc5
This commit is contained in:

committed by
Dean Troyer

parent
27f96a3a7a
commit
fe59e339ae
doc/source/command-objects
openstackclient
releasenotes/notes
@ -63,7 +63,7 @@ Create new router
|
||||
openstack router create
|
||||
[--project <project> [--project-domain <project-domain>]]
|
||||
[--enable | --disable]
|
||||
[--distributed]
|
||||
[--distributed | --centralized]
|
||||
[--ha | --no-ha]
|
||||
[--description <description>]
|
||||
[--availability-zone-hint <availability-zone>]
|
||||
@ -90,6 +90,19 @@ Create new router
|
||||
|
||||
Create a distributed router
|
||||
|
||||
The default router type (distributed vs centralized) is determined by a
|
||||
configuration setting in the OpenStack deployment. Since we are unable
|
||||
to know that default wihtout attempting to actually create a router it
|
||||
is suggested to use either :option:`--distributed` or :option:`--centralized`
|
||||
in situations where multiple cloud deployments may be used.
|
||||
|
||||
.. option:: --centralized
|
||||
|
||||
Create a centralized router
|
||||
|
||||
See the note in :option:`--distributed` regarding the default used when
|
||||
creating a new router.
|
||||
|
||||
.. option:: --ha
|
||||
|
||||
Create a highly available router
|
||||
|
Reference in New Issue
Block a user