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:
Ewan Mellor
2012-01-13 17:28:27 -08:00
parent a45a1d0c38
commit 673d369969
2 changed files with 18 additions and 1 deletions

View File

@@ -907,7 +907,7 @@ class NetworkCommands(object):
net_manager.delete_network(context.get_admin_context(),
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')
@args('--project', dest="project", metavar='<project name>',
help='Project name to associate')

View File

@@ -68,3 +68,20 @@ Network Management
[network_size=FLAG], [vlan_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.