Resource Type: cisco_bgp_af

Defined in:
lib/puppet/type/cisco_bgp_af.rb
Providers:
cisco

Overview

Manages BGP Address-Family configuration.

~~~puppet cisco_bgp_af { ‘<title>’:

..attributes..

} ~~~

‘<title>` is the title of the bgp_af resource.

Example:

$injectmap = [[‘nyc’, ‘sfo’], [‘sjc’, ‘sfo’, ‘copy-attributes’] $network_list = [[‘192.168.5.0/24’, ‘rtmap1’], [‘192.168.10.0/24’]] $redistribute = [[‘eigrp 1’, ‘e_rtmap_29’], [‘ospf 3’, ‘o_rtmap’]] ~~~puppet

cisco_bgp_af { 'raleigh':
  ensure                                 => present,
  asn                                    => '55',
  vrf                                    => 'default',
  afi                                    => 'ipv4',
  safi                                   => 'unicast',

  additional_paths_install               => 'true',
  additional_paths_receive               => 'true',
  additional_paths_selection             => 'Route_Map',
  additional_paths_send                  => 'true',
  advertise_l2vpn_evpn                   => 'true',
  client_to_client                       => 'true',
  dampen_igp_metric                      => 200,
  dampening_state                        => 'true',
  dampening_half_time                    => 5,
  dampening_max_suppress_time            => 200,
  dampening_reuse_time                   => 10,
  dampening_routemap                     => 'Dampening_Route_Map',
  dampening_suppress_time                => 15,
  default_information_originate          => 'true',
  default_metric                         => 50,
  distance_ebgp                          => 20,
  distance_ibgp                          => 40,
  distance_local                         => 60,
  inject_map                             => $injectmap,
  maximum_paths                          => '7',
  maximum_paths_ibgp                     => '7',
  next_hop_route_map                     => 'Default_Route_Map',
  network                                => $network_list,
  redistribute                           => $redistribute,
  suppress_inactive                      => 'true',
  table_map                              => 'sjc',
  table_map_filter                       => 'true',
}

~~~

Example Title Patterns:

~~~puppet

cisco_bgp_af { 'new_york':
  ensure                                 => present,
  asn                                    => '1',
  vrf                                    => 'red',
  afi                                    => 'ipv4',
  safi                                   => 'unicast',

~~~

~~~puppet

cisco_bgp_af { '1':
  ensure                                 => present,
  vrf                                    => 'red',
  afi                                    => 'ipv4',
  safi                                   => 'unicast',

~~~

~~~puppet

cisco_bgp_af { '1 red':
  ensure                                 => present,
  afi                                    => 'ipv4',
  safi                                   => 'unicast',

~~~

cisco_bgp_af { '1 red ipv4':
  ensure                                 => present,
  safi                                   => 'unicast',

~~~

~~~puppet

cisco_bgp_af { '1 red ipv4 unicast':
  ensure                                 => present,

~~~

Properties

  • additional_paths_install
    Supported values:
    • true
    • false
    • default
  • additional_paths_receive
    Supported values:
    • true
    • false
    • default
  • additional_paths_selection
  • additional_paths_send
    Supported values:
    • true
    • false
    • default
  • advertise_l2vpn_evpn

    Advertise EVPN routes. Valid values are true, false, or ‘default’

    Supported values:
    • true
    • false
    • default
  • client_to_client
    Supported values:
    • true
    • false
    • default
  • dampen_igp_metric
  • dampening_half_time
  • dampening_max_suppress_time
  • dampening_reuse_time
  • dampening_routemap
  • dampening_state
    Supported values:
    • true
    • false
    • default
  • dampening_suppress_time
  • default_information_originate
    Supported values:
    • true
    • false
    • default
  • default_metric

    Sets the default metrics for routes redistributed into BGP. Valid values are Integer or keyword ‘default’

  • distance_ebgp

    Sets the administrative distance for BGP. Valid values are Integer or keyword ‘default’

  • distance_ibgp

    Sets the administrative distance for BGP. Valid values are Integer or keyword ‘default’

  • distance_local

    Sets the administrative distance for BGP. Valid values are Integer or keyword ‘default’

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • inject_map

    Routemap which specifies prefixes to inject. Valid values match format

  • maximum_paths
  • maximum_paths_ibgp
  • networks

    Networks to configure. Valid values match format

  • next_hop_route_map
  • redistribute
  • suppress_inactive

    Advertises only active routes to peersy Valid values are true, false, or ‘default’

    Supported values:
    • true
    • false
    • default
  • table_map

    Apply table-map to filter routes downloaded into URIB Valid values are a string

  • table_map_filter

    Filters routes rejected by the route map and does not download them to the RIB. Valid values are true, false, or ‘default’

    Supported values:
    • true
    • false
    • default

Parameters

  • afi

    BGP Address-family AFI (ipv4|ipv6|vpnv4|vpnv6|l2vpn). Valid values are string.

    Supported values:
    • ipv4
    • ipv6
    • vpnv4
    • vpnv6
    • l2vpn
  • asn

    BGP autonomous system number. Valid values are String, Integer in ASPLAIN or ASDOT notation

  • name (namevar)
  • provider

    The specific backend to use for this ‘cisco_bgp_af` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • safi

    BGP Address-family SAFI (unicast|multicast|evpn). Valid values are string.

    Supported values:
    • unicast
    • multicast
    • evpn
  • vrf (defaults to: default)
    Supported values:
    • /^\S+$/