Enables networking-vpp in nosdn-fdio scenario
[apex.git] / build / puppet-neutron / manifests / plugins / ml2 / networking-vpp.pp
1 #
2 # Install the networking-vpp ML2 mechanism driver and generate config file
3 # from parameters in the other classes.
4 #
5 # === Parameters
6 #
7 # [*package_ensure*]
8 # (optional) The intended state of the networking-vpp
9 # package, i.e. any of the possible values of the 'ensure'
10 # property for a package resource type.
11 # Defaults to 'present'
12 #
13 # [*agents*]
14 # Networking-vpp agents's addresses
15 # Defaults to $::os_service_default
16 #
17 class neutron::plugins::ml2::networking-vpp (
18   $package_ensure  = 'present',
19   $agents          = $::os_service_default,
20 ) {
21   require ::neutron::plugins::ml2
22
23   ensure_resource('package', 'networking-vpp',
24     {
25       ensure => $package_ensure,
26       tag    => 'openstack',
27     }
28   )
29
30   neutron_plugin_ml2 {
31     'ml2_vpp/agents': value => $agents;
32   }
33 }