vlan fixes

This commit is contained in:
Joe Topjian 2012-10-24 10:18:02 -06:00
parent bf8254ddc3
commit e75da4220b
2 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,8 @@ define nova::manage::network (
$network,
$num_networks = 1,
$network_size = 255,
$project = undef
$vlan_start = undef,
$project = undef
) {
File['/etc/nova/nova.conf'] -> Nova_network[$name]
@ -21,6 +22,7 @@ define nova::manage::network (
num_networks => $num_networks,
network_size => $network_size,
project => $project,
vlan_start => $vlan_start,
}
}

View File

@ -43,6 +43,12 @@ class nova::network(
nova_config { 'floating_range': value => $floating_range }
}
if has_key($config_overrides, 'vlan_start') {
$vlan_start = $config_overrides['vlan_start']
} else {
$vlan_start = undef
}
if $install_service {
nova::generic_service { 'network':
enabled => $enabled,
@ -58,6 +64,7 @@ class nova::network(
network => $fixed_range,
num_networks => $num_networks,
network_size => $network_size,
vlan_start => $vlan_start,
}
if $floating_range {
nova::manage::floating { 'nova-vm-floating':