Skip to content
Snippets Groups Projects
Commit 907f63dc authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

Fix bridge_mappings variable declaration to work with one nic

parent 53595e30
No related branches found
No related tags found
1 merge request!25Fix bridge_mappings variable declaration to work with one nic
......@@ -131,10 +131,9 @@ class iaas::profile::neutron::router (
}
if $external_device2 {
$bridge_mappings1="physnet1:br-ex1"
$bridge_mappings2="physnet2:br-ex2"
$bridge_mappings= ['physnet1:br-ex1','physnet2:br-ex2']
} else {
$bridge_mappings1='physnet1:br-ex1'
$bridge_mappings=['physnet1:br-ex1']
}
class { '::neutron::agents::ml2::ovs':
......@@ -144,7 +143,7 @@ class iaas::profile::neutron::router (
tunnel_types => ['gre'],
#double_external_network, variable modified
# bridge_mappings => ['external:br-ex'],
bridge_mappings => [$bridge_mappings1,$bridge_mappings2],
bridge_mappings => $bridge_mappings,
require => File['etc_default_neutron-server'],
}
......@@ -307,4 +306,4 @@ class iaas::profile::neutron::router (
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment