Puppet Class: profile::openstack::eqiad1::neutron::l3_agent

Defined in:
modules/profile/manifests/openstack/eqiad1/neutron/l3_agent.pp

Overview

Parameters:

  • version (Any) (defaults to: lookup('profile::openstack::eqiad1::version'))
  • bridges (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::l3_agent_bridges'))
  • bridge_mappings (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::l3_agent_bridge_mappings'))
  • network_flat_interface_vlan_external (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::network_flat_interface_vlan_external'))
  • network_flat_interface_vlan (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::network_flat_interface_vlan'))
  • report_interval (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::report_interval'))
  • base_interface (Any) (defaults to: lookup('profile::openstack::eqiad1::neutron::base_interface'))
  • nic_rename_mac (Optional[Stdlib::MAC]) (defaults to: lookup('profile::openstack::eqiad1::neutron::nic_rename_mac', {default_value => undef}))
  • legacy_vlan (Boolean) (defaults to: lookup('profile::openstack::eqiad1::neutron::legacy_vlan_naming'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'modules/profile/manifests/openstack/eqiad1/neutron/l3_agent.pp', line 1

class profile::openstack::eqiad1::neutron::l3_agent(
    $version = lookup('profile::openstack::eqiad1::version'),
    $bridges = lookup('profile::openstack::eqiad1::neutron::l3_agent_bridges'),
    $bridge_mappings = lookup('profile::openstack::eqiad1::neutron::l3_agent_bridge_mappings'),
    $network_flat_interface_vlan_external = lookup('profile::openstack::eqiad1::neutron::network_flat_interface_vlan_external'),
    $network_flat_interface_vlan = lookup('profile::openstack::eqiad1::neutron::network_flat_interface_vlan'),
    $report_interval = lookup('profile::openstack::eqiad1::neutron::report_interval'),
    $base_interface = lookup('profile::openstack::eqiad1::neutron::base_interface'),
    Optional[Stdlib::MAC] $nic_rename_mac = lookup('profile::openstack::eqiad1::neutron::nic_rename_mac', {default_value => undef}),
    Boolean               $legacy_vlan    = lookup('profile::openstack::eqiad1::neutron::legacy_vlan_naming'),
    ) {

    if $nic_rename_mac {
        interface::rename { $base_interface:
            mac => $nic_rename_mac,
        }
    }

    require ::profile::openstack::eqiad1::clientpackages
    require ::profile::openstack::eqiad1::neutron::common

    class {'::profile::openstack::base::neutron::l3_agent':
        version                              => $version,
        report_interval                      => $report_interval,
        base_interface                       => $base_interface,
        network_flat_interface_vlan          => $network_flat_interface_vlan,
        network_flat_interface_vlan_external => $network_flat_interface_vlan_external,
        legacy_vlan_naming                   => $legacy_vlan,
    }
    contain '::profile::openstack::base::neutron::l3_agent'

    class {'::profile::openstack::base::neutron::linuxbridge_agent':
        version         => $version,
        bridges         => $bridges,
        bridge_mappings => $bridge_mappings,
        report_interval => $report_interval,
    }
    contain '::profile::openstack::base::neutron::linuxbridge_agent'
}