Changed fixed_range (CIDR) to be required in the nova-manage command; changed default num_networks to 1.
This commit is contained in:
commit
5562c3f4b0
1
Authors
1
Authors
@ -33,6 +33,7 @@ Jonathan Bryce <jbryce@jbryce.com>
|
|||||||
Jordan Rinke <jordan@openstack.org>
|
Jordan Rinke <jordan@openstack.org>
|
||||||
Josh Durgin <joshd@hq.newdream.net>
|
Josh Durgin <joshd@hq.newdream.net>
|
||||||
Josh Kearney <josh@jk0.org>
|
Josh Kearney <josh@jk0.org>
|
||||||
|
Josh Kleinpeter <josh@kleinpeter.org>
|
||||||
Joshua McKenty <jmckenty@gmail.com>
|
Joshua McKenty <jmckenty@gmail.com>
|
||||||
Justin Santa Barbara <justin@fathomdb.com>
|
Justin Santa Barbara <justin@fathomdb.com>
|
||||||
Kei Masumoto <masumotok@nttdata.co.jp>
|
Kei Masumoto <masumotok@nttdata.co.jp>
|
||||||
|
@ -518,11 +518,12 @@ class NetworkCommands(object):
|
|||||||
network_size=None, vlan_start=None,
|
network_size=None, vlan_start=None,
|
||||||
vpn_start=None, fixed_range_v6=None, label='public'):
|
vpn_start=None, fixed_range_v6=None, label='public'):
|
||||||
"""Creates fixed ips for host by range
|
"""Creates fixed ips for host by range
|
||||||
arguments: [fixed_range=FLAG], [num_networks=FLAG],
|
arguments: fixed_range=FLAG, [num_networks=FLAG],
|
||||||
[network_size=FLAG], [vlan_start=FLAG],
|
[network_size=FLAG], [vlan_start=FLAG],
|
||||||
[vpn_start=FLAG], [fixed_range_v6=FLAG]"""
|
[vpn_start=FLAG], [fixed_range_v6=FLAG]"""
|
||||||
if not fixed_range:
|
if not fixed_range:
|
||||||
fixed_range = FLAGS.fixed_range
|
raise TypeError(_('Fixed range in the form of 10.0.0.0/8 is '
|
||||||
|
'required to create networks.'))
|
||||||
if not num_networks:
|
if not num_networks:
|
||||||
num_networks = FLAGS.num_networks
|
num_networks = FLAGS.num_networks
|
||||||
if not network_size:
|
if not network_size:
|
||||||
|
@ -73,7 +73,7 @@ flags.DEFINE_string('flat_interface', None,
|
|||||||
flags.DEFINE_string('flat_network_dhcp_start', '10.0.0.2',
|
flags.DEFINE_string('flat_network_dhcp_start', '10.0.0.2',
|
||||||
'Dhcp start for FlatDhcp')
|
'Dhcp start for FlatDhcp')
|
||||||
flags.DEFINE_integer('vlan_start', 100, 'First VLAN for private networks')
|
flags.DEFINE_integer('vlan_start', 100, 'First VLAN for private networks')
|
||||||
flags.DEFINE_integer('num_networks', 1000, 'Number of networks to support')
|
flags.DEFINE_integer('num_networks', 1, 'Number of networks to support')
|
||||||
flags.DEFINE_string('vpn_ip', '$my_ip',
|
flags.DEFINE_string('vpn_ip', '$my_ip',
|
||||||
'Public IP for the cloudpipe VPN servers')
|
'Public IP for the cloudpipe VPN servers')
|
||||||
flags.DEFINE_integer('vpn_start', 1000, 'First Vpn port for private networks')
|
flags.DEFINE_integer('vpn_start', 1000, 'First Vpn port for private networks')
|
||||||
|
Loading…
Reference in New Issue
Block a user