summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/neutron/plugins/ml2/vpp.pp
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2018-03-16 08:16:49 -0400
committerTim Rozet <trozet@redhat.com>2018-04-12 14:08:38 +0000
commitab64db9c0d80dbda5ff286722308a7b125628b7f (patch)
tree8bd7d9009f0f08b62e43331d926c22c4237b5fa7 /manifests/profile/base/neutron/plugins/ml2/vpp.pp
parentd98f6b68e5e25d24f4ceb747c421f7a9d4889a56 (diff)
Add physnets and type_driver settings
Change-Id: I472879b8f67e64b571638a0385943597a9120e6c Signed-off-by: Feng Pan <fpan@redhat.com> (cherry picked from commit f409f083d2c63e7ec2f484a77b2229613252de5e)
Diffstat (limited to 'manifests/profile/base/neutron/plugins/ml2/vpp.pp')
-rw-r--r--manifests/profile/base/neutron/plugins/ml2/vpp.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/profile/base/neutron/plugins/ml2/vpp.pp b/manifests/profile/base/neutron/plugins/ml2/vpp.pp
index 7d59239..0312eff 100644
--- a/manifests/profile/base/neutron/plugins/ml2/vpp.pp
+++ b/manifests/profile/base/neutron/plugins/ml2/vpp.pp
@@ -41,9 +41,15 @@ class tripleo::profile::base::neutron::plugins::ml2::vpp (
}
if $step >= 4 {
+ if $::hostname in hiera('controller_node_names') {
+ $l3_hosts = strip(hiera('controller_node_names').split(',')[0])
+ } else {
+ $l3_hosts = undef
+ }
class { '::neutron::plugins::ml2::vpp':
etcd_host => $etcd_host,
etcd_port => $etcd_port,
+ l3_hosts => $l3_hosts,
}
}
}