summaryrefslogtreecommitdiffstats
path: root/build/puppet-neutron/manifests/plugins/ml2
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-07 22:26:35 -0400
committerFeng Pan <fpan@redhat.com>2016-09-09 13:36:22 -0400
commitd327766d7e7ff91f4ed1a11cfcda70254420f524 (patch)
treecfd411e54e25e5af8bc4b99776a4ad64030f3715 /build/puppet-neutron/manifests/plugins/ml2
parent5ac7ef296a6967f67e5d6a4a29117092c2f5dff4 (diff)
Enables networking-vpp in nosdn-fdio scenario
- Add puppet neutron support for configuring both ML2 driver and networking-vpp agent - Update THT to invoke new puppet classes. JIRA: APEX-261 opnfv-tht-pr: 76 Change-Id: Iab21713eb711e9f24fa66cba30c895e43a3e945e Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'build/puppet-neutron/manifests/plugins/ml2')
-rw-r--r--build/puppet-neutron/manifests/plugins/ml2/networking-vpp.pp33
1 files changed, 33 insertions, 0 deletions
diff --git a/build/puppet-neutron/manifests/plugins/ml2/networking-vpp.pp b/build/puppet-neutron/manifests/plugins/ml2/networking-vpp.pp
new file mode 100644
index 00000000..26548d3a
--- /dev/null
+++ b/build/puppet-neutron/manifests/plugins/ml2/networking-vpp.pp
@@ -0,0 +1,33 @@
+#
+# Install the networking-vpp ML2 mechanism driver and generate config file
+# from parameters in the other classes.
+#
+# === Parameters
+#
+# [*package_ensure*]
+# (optional) The intended state of the networking-vpp
+# package, i.e. any of the possible values of the 'ensure'
+# property for a package resource type.
+# Defaults to 'present'
+#
+# [*agents*]
+# Networking-vpp agents's addresses
+# Defaults to $::os_service_default
+#
+class neutron::plugins::ml2::networking-vpp (
+ $package_ensure = 'present',
+ $agents = $::os_service_default,
+) {
+ require ::neutron::plugins::ml2
+
+ ensure_resource('package', 'networking-vpp',
+ {
+ ensure => $package_ensure,
+ tag => 'openstack',
+ }
+ )
+
+ neutron_plugin_ml2 {
+ 'ml2_vpp/agents': value => $agents;
+ }
+}