default to None in the method signature
This commit is contained in:
@@ -567,7 +567,7 @@ class NetworkCommands(object):
|
||||
network_size=None, multi_host=None, vlan_start=None,
|
||||
vpn_start=None, fixed_range_v6=None, gateway_v6=None,
|
||||
flat_network_bridge=None, bridge_interface=None,
|
||||
dns=None, dns2=None):
|
||||
dns1=None, dns2=None):
|
||||
"""Creates fixed ips for host by range
|
||||
arguments: label, fixed_range, [num_networks=FLAG],
|
||||
[network_size=FLAG], [multi_host=FLAG], [vlan_start=FLAG],
|
||||
@@ -607,8 +607,8 @@ class NetworkCommands(object):
|
||||
bridge_interface = FLAGS.flat_interface or FLAGS.vlan_interface
|
||||
if not gateway_v6:
|
||||
gateway_v6 = FLAGS.gateway_v6
|
||||
if not dns and FLAGS.flat_network_dns:
|
||||
dns = FLAGS.flat_network_dns
|
||||
if not dns1 and FLAGS.flat_network_dns:
|
||||
dns1 = FLAGS.flat_network_dns
|
||||
net_manager = utils.import_object(FLAGS.network_manager)
|
||||
|
||||
try:
|
||||
@@ -624,7 +624,7 @@ class NetworkCommands(object):
|
||||
gateway_v6=gateway_v6,
|
||||
bridge=flat_network_bridge,
|
||||
bridge_interface=bridge_interface,
|
||||
dns=dns,
|
||||
dns1=dns1,
|
||||
dns2=dns2)
|
||||
except ValueError, e:
|
||||
print e
|
||||
@@ -636,7 +636,7 @@ class NetworkCommands(object):
|
||||
_('network'),
|
||||
_('netmask'),
|
||||
_('start address'),
|
||||
_('DNS'),
|
||||
_('DNS1'),
|
||||
_('DNS2'),
|
||||
_('VlanID'),
|
||||
'project')
|
||||
@@ -645,7 +645,7 @@ class NetworkCommands(object):
|
||||
network.cidr,
|
||||
network.netmask,
|
||||
network.dhcp_start,
|
||||
network.dns,
|
||||
network.dns1,
|
||||
network.dns2,
|
||||
network.vlan,
|
||||
network.project_id)
|
||||
|
||||
Reference in New Issue
Block a user