aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/neutron/agents
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2018-03-16 08:16:49 -0400
committerFeng Pan <fpan@redhat.com>2018-04-01 21:49:40 -0400
commitf409f083d2c63e7ec2f484a77b2229613252de5e (patch)
tree2be5687ca7bf926d7027040dfc051e8c12507648 /manifests/profile/base/neutron/agents
parent7e42851739337960ff1255f9c84773aa13d47bc0 (diff)
Add physnets and type_driver settings
Change-Id: I472879b8f67e64b571638a0385943597a9120e6c Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'manifests/profile/base/neutron/agents')
-rw-r--r--manifests/profile/base/neutron/agents/vpp.pp31
1 files changed, 26 insertions, 5 deletions
diff --git a/manifests/profile/base/neutron/agents/vpp.pp b/manifests/profile/base/neutron/agents/vpp.pp
index 6c55b86..0b06b57 100644
--- a/manifests/profile/base/neutron/agents/vpp.pp
+++ b/manifests/profile/base/neutron/agents/vpp.pp
@@ -31,19 +31,40 @@
# (Optional) etcd server listening port.
# Defaults to 2379
#
+# [*physnet_mapping*]
+# (Optional) physnet mapping, example: 'datacentre:eth1'. Note that the
+# interface specified here is a kernel interface name that is bound to
+# VPP.
+# Defaults to []
+#
+# [*type_drivers*]
+# (optional) List of network type driver entrypoints to be loaded
+# Could be an array that can contain flat, vlan or vxlan
+# Defaults to hiera('neutron::plugins::ml2::type_drivers', undef)
+#
class tripleo::profile::base::neutron::agents::vpp(
- $step = Integer(hiera('step')),
- $etcd_host = hiera('etcd_vip'),
- $etcd_port = 2379,
+ $step = Integer(hiera('step')),
+ $etcd_host = hiera('etcd_vip'),
+ $etcd_port = 2379,
+ $physnet_mapping = [],
+ $type_drivers = hiera('neutron::plugins::ml2::type_drivers', undef),
) {
if empty($etcd_host) {
fail('etcd_vip not set in hieradata')
}
if $step >= 4 {
+ if $::hostname in hiera('controller_node_names') {
+ $service_plugins = hiera('neutron::service_plugins')
+ } else {
+ $service_plugins = undef
+ }
class { '::neutron::agents::ml2::vpp':
- etcd_host => $etcd_host,
- etcd_port => $etcd_port,
+ etcd_host => $etcd_host,
+ etcd_port => $etcd_port,
+ physnets => vpp_physnet_mapping($physnet_mapping),
+ type_drivers => $type_drivers,
+ service_plugins => $service_plugins,
}
}
}