summaryrefslogtreecommitdiffstats
path: root/build/puppet-neutron/manifests/agents
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-09-10 03:01:14 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-10 03:01:14 +0000
commit6a07c774db6e94e34d3aea4fbcc2bee75633fe6b (patch)
tree921bb401f8b5044d70f77e61a0a84844880a0979 /build/puppet-neutron/manifests/agents
parenta715ec7cd3677b22c6961342491d61637a487586 (diff)
parentd327766d7e7ff91f4ed1a11cfcda70254420f524 (diff)
Merge "Enables networking-vpp in nosdn-fdio scenario"
Diffstat (limited to 'build/puppet-neutron/manifests/agents')
-rw-r--r--build/puppet-neutron/manifests/agents/ml2/networking-vpp.pp56
1 files changed, 56 insertions, 0 deletions
diff --git a/build/puppet-neutron/manifests/agents/ml2/networking-vpp.pp b/build/puppet-neutron/manifests/agents/ml2/networking-vpp.pp
new file mode 100644
index 00000000..c25c2817
--- /dev/null
+++ b/build/puppet-neutron/manifests/agents/ml2/networking-vpp.pp
@@ -0,0 +1,56 @@
+# == Class: neutron::agents::ml2::networking-vpp
+#
+# Setups networking-vpp Neutron agent for ML2 plugin.
+#
+# === Parameters
+#
+# [*package_ensure*]
+# (optional) Package ensure state.
+# Defaults to 'present'.
+#
+# [*enabled*]
+# (required) Whether or not to enable the agent.
+# Defaults to true.
+#
+# [*manage_service*]
+# (optional) Whether to start/stop the service
+# Defaults to true
+#
+# [*physnets*]
+# List of <physical_network>:<physical_interface>
+# tuples mapping physical network names to agent's node-specific physical
+# network interfaces. Defaults to empty list.
+#
+# [*flat_network_if*]
+# VPP interface used for flat network
+# Defaults to ''.
+#
+class neutron::agents::ml2::networking-vpp (
+ $package_ensure = 'present',
+ $enabled = true,
+ $manage_service = true,
+ $physnets = '',
+ $flat_network_if = '',
+) {
+
+ include ::neutron::params
+
+ if $manage_service {
+ if $enabled {
+ $service_ensure = 'running'
+ } else {
+ $service_ensure = 'stopped'
+ }
+ }
+
+ neutron_plugin_ml2 {
+ 'ml2_vpp/physnets': value => $physnets;
+ 'ml2_vpp/flat_network_if': value => $flat_network_if;
+ }->
+ service { 'networking-vpp-agent':
+ ensure => $service_ensure,
+ name => 'networking-vpp-agent',
+ enable => $enabled,
+ tag => 'neutron-service',
+ }
+} \ No newline at end of file