Puppet Class: profile::flowspec

Defined in:
modules/profile/manifests/flowspec.pp

Overview

Class profile::flowspec

Install and manage a Flowspec controller and its requirements

Parameters

[*asns*]
  site to AS# mapping

Parameters:

  • asns (Hash[String, Integer]) (defaults to: lookup('asns'))


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'modules/profile/manifests/flowspec.pp', line 10

class profile::flowspec (
  Hash[String, Integer] $asns = lookup('asns'),
  ) {

    # Get the list of infrastructure prefixes per sites
    include network::constants
    $network_infra = $::network::constants::network_infra

    class { 'gobgpd':
        config_content => template('profile/flowspec/gobgpd.conf.erb'),
    }

    ferm::service { 'bgp':
        proto  => 'tcp',
        port   => '179',
        desc   => 'BGP',
        srange => '($NETWORK_INFRA)',
    }
}