Bug #916312: nova-manage network modify --network flag is inconsistent.
Change nova-manage network modify --network to --fixed_range, to match nova-manage network delete. Also document both. Change-Id: I3c03a33e9e3576393252d771eb4ce3353a7f2eaa
This commit is contained in:
@@ -907,7 +907,7 @@ class NetworkCommands(object):
|
|||||||
net_manager.delete_network(context.get_admin_context(),
|
net_manager.delete_network(context.get_admin_context(),
|
||||||
fixed_range, uuid)
|
fixed_range, uuid)
|
||||||
|
|
||||||
@args('--network', dest="fixed_range", metavar='<x.x.x.x/yy>',
|
@args('--fixed_range', dest="fixed_range", metavar='<x.x.x.x/yy>',
|
||||||
help='Network to modify')
|
help='Network to modify')
|
||||||
@args('--project', dest="project", metavar='<project name>',
|
@args('--project', dest="project", metavar='<project name>',
|
||||||
help='Project name to associate')
|
help='Project name to associate')
|
||||||
|
|||||||
@@ -68,3 +68,20 @@ Network Management
|
|||||||
[network_size=FLAG], [vlan_start=FLAG],
|
[network_size=FLAG], [vlan_start=FLAG],
|
||||||
[vpn_start=FLAG]
|
[vpn_start=FLAG]
|
||||||
|
|
||||||
|
* network modify: Associate/disassociate network with project and/or host.
|
||||||
|
|
||||||
|
* :option:`--fixed_range=\<IP range\>` - Specify the network to modify by
|
||||||
|
IP range. Required.
|
||||||
|
* :option:`--project=\<project name\>` - Project name to associate.
|
||||||
|
Optional.
|
||||||
|
* :option:`--host=\<host\>` - Host to associate. Optional.
|
||||||
|
* :option:`--disassociate-project` - Disassociate network from project.
|
||||||
|
Optional, mutually exclusive with :option:`--project`.
|
||||||
|
* :option:`--disassociate-host` - Disassociate host from project.
|
||||||
|
Optional, mutually exclusive with :option:`--host`.
|
||||||
|
|
||||||
|
* network delete: Deletes a network. Precisely one of :option:`--fixed_range`
|
||||||
|
or :option:`--uuid` must be specified.
|
||||||
|
|
||||||
|
* :option:`--fixed_range=\<IP range\>` - Specify the network by range.
|
||||||
|
* :option:`--uuid=\<UUID\>` - Specify the network by UUID.
|
||||||
|
|||||||
Reference in New Issue
Block a user