Puppet Class: profile::openstack::base::neutron::ovs_agent

Defined in:
modules/profile/manifests/openstack/base/neutron/ovs_agent.pp

Summary

manage neutron openvswitch L2 agent

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • version (OpenStack::Version) (defaults to: lookup('profile::openstack::base::version'))

    OpenStack version in use

  • bridge_mappings

    openstack provider networks

  • provider_networks (Hash[String[1], OpenStack::Neutron::ProviderNetwork]) (defaults to: lookup('profile::openstack::base::neutron::physical_interface_mappings'))


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/profile/manifests/openstack/base/neutron/ovs_agent.pp', line 5

class profile::openstack::base::neutron::ovs_agent (
    OpenStack::Version                                   $version           = lookup('profile::openstack::base::version'),
    Hash[String[1], OpenStack::Neutron::ProviderNetwork] $provider_networks = lookup('profile::openstack::base::neutron::physical_interface_mappings'),
) {
    class { 'openvswitch': }

    $provider_networks.each |String[1] $network, OpenStack::Neutron::ProviderNetwork $config| {
        openvswitch::bridge { $config['bridge']: }
        openvswitch::bridge::member { $config['interface']:
            bridge => $config['bridge'],
        }
    }

    class { 'openstack::neutron::ovs_agent':
        *               => wmflib::resource::dump_params(),
        overlay_address => $profile::wmcs::cloud_private_subnet::cloud_private_address,
    }
}