Resource Type: quagga_route_map

Defined in:
lib/puppet/type/quagga_route_map.rb
Providers:
quagga

Overview

This type provides the capability to manage route-map within puppet.

Example:

  route_map {'TEST_ROUTE_MAP 10':
      ensure   => present,
      action   => 'permit',
      match    => [
          'as-path PATH_LIST',
          'community COMMUNITY_LIST',
      ],
      on_match => 'next',
      set      => [
          'local-preference 200',
          'community none',
      ],
  }

Properties

  • action (defaults to: permit)

    The route-map action.

    Supported values:
    • deny
    • permit
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • match (defaults to: [])

    Match values from routing table.

    Supported values:
    • %r{\Aas-path\s(\w+)\Z}
    • %r{\Acommunity\s(\w+)(\s(exact-match))?\Z}
    • %r{\Aextcommunity\s(\w+)\Z}
    • %r{\Ainterface\s(\w[\w\.:]+)\Z}
    • %r{\Aip\s(address|next-hop|route-source)\s(\d+)\Z}
    • %r{\Aip\s(address|next-hop|route-source)\s(\w[\w-]+)\Z}
    • %r{\Aip\s(address|next-hop|route-source)\sprefix-list\s(\w[\w-]+)\Z}
    • %r{\Aipv6\s(address|next-hop)\s(\w[\w-]+)\Z}
    • %r{\Aipv6\s(address|next-hop)\sprefix-list\s(\w[\w-]+)\Z}
    • %r{\Alocal-preference\s(\d+)\Z}
    • %r{\Ametric\s(\d+)\Z}
    • %r{\Aorigin\s(egp|igp|incomplete)\Z}
    • %r{\Apeer\s(\d+\.\d+\.\d+\.\d+)\Z}
    • %r{\Apeer\s([\d:]+)\Z}
    • %r{\Apeer\slocal\Z}
    • %r{\Aprobability\s(\d+)\Z}
    • %r{\Atag\s(\d+)\Z}
  • on_match (defaults to: absent)

    Exit policy on matches.

    Supported values:
    • absent
    • %r{\Agoto\s(\d+)\Z}
    • %r{\Anext\Z}
  • set (defaults to: [])

    Set values in destination routing protocol.

    Supported values:
    • %r{\Aaggregator\sas\s(\d+)\Z}
    • %r{\Aas-path\sexclude(\s(\d+))+\Z}
    • %r{\Aas-path\sprepend(\s(\d+))+\Z}
    • %r{\Aas-path\sprepend\slast-as\s(\d+)\Z}
    • %r{\Aatomic-aggregate\Z}
    • %r{\Acomm-list\s(\d+|\w[\w-]+)\sdelete\Z}
    • %r{\Acommunity(\s(\d+:\d+))+(\sadditive)?\Z}
    • %r{\Acommunity\snone\Z}
    • %r{\Aforwarding-address\s([\d:]+)\Z}
    • %r{\Aip\snext-hop\s((\d+\.\d+\.\d+\.\d+)|peer-address)\Z}
    • %r{\Aipv6\snext-hop\s(global|local)\s([\d:]+)\Z}
    • %r{\Aipv6\snext-hop\speer-address\Z}
    • %r{\Alocal-preference\s(\d+)\Z}
    • %r{\Ametric\s(\+|-)?(rtt|\d+)\Z}
    • %r{\Ametric-type\stype-(1|2)\Z}
    • %r{\Aorigin\s(egp|igp|incomplete)\Z}
    • %r{\Aoriginator-id\s(\d+\.\d+\.\d+\.\d+)\Z}
    • %r{\Asrc\s(\d+\.\d+\.\d+\.\d+)\Z}
    • %r{\Atag\s(\d+)\Z}
    • %r{\Avpn4\snext-hop\s(\d+\.\d+\.\d+\.\d+)\Z}
    • %r{\Aweight\s(\d+)\Z}

Parameters

  • name (namevar)

    Contains a name and a sequence of the route-map.

    Supported values:
    • %r{\A[[:alpha:]][\w-]+\s\d+\Z}
  • provider

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