Puppet Class: profile::openstack::base::neutron::l3_agent

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

Overview

Parameters:

  • version (Any) (defaults to: lookup('profile::openstack::base::version'))
  • report_interval (Any) (defaults to: lookup('profile::openstack::base::neutron::report_interval'))
  • base_interface (Any) (defaults to: lookup('profile::openstack::base::neutron::base_interface'))
  • network_flat_interface_vlan_external (Any) (defaults to: lookup('profile::openstack::base::neutron::network_flat_interface_vlan_external'))
  • network_flat_interface_vlan (Any) (defaults to: lookup('profile::openstack::base::neutron::network_flat_interface_vlan'))


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
# File 'modules/profile/manifests/openstack/base/neutron/l3_agent.pp', line 1

class profile::openstack::base::neutron::l3_agent(
    $version = lookup('profile::openstack::base::version'),
    $report_interval = lookup('profile::openstack::base::neutron::report_interval'),
    $base_interface = lookup('profile::openstack::base::neutron::base_interface'),
    $network_flat_interface_vlan_external = lookup('profile::openstack::base::neutron::network_flat_interface_vlan_external'),
    $network_flat_interface_vlan = lookup('profile::openstack::base::neutron::network_flat_interface_vlan'),
    ) {

    interface::tagged { "${base_interface}.${$network_flat_interface_vlan_external}":
        base_interface => $base_interface,
        vlan_id        => $network_flat_interface_vlan_external,
        method         => 'manual',
        up             => 'ip link set $IFACE up',
        down           => 'ip link set $IFACE down',
    }

    interface::tagged { "${base_interface}.${$network_flat_interface_vlan}":
        base_interface => $base_interface,
        vlan_id        => $network_flat_interface_vlan,
        method         => 'manual',
        up             => 'ip link set $IFACE up',
        down           => 'ip link set $IFACE down',
    }

    class {'::openstack::neutron::l3_agent':
        version         => $version,
        report_interval => $report_interval,
        nic_dataplane   => $base_interface,
        wan_vlan        => $network_flat_interface_vlan_external,
        virt_vlan       => $network_flat_interface_vlan,
    }
    contain '::openstack::neutron::l3_agent'

    class { '::prometheus::node_neutron_namespace':
        ensure => 'present',
    }
}