Forge Home

quagga

Puppet module to manage Quagga

20,593 downloads

229 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 4.5.0 (latest)
  • 4.4.0
  • 4.3.1
  • 4.3.0
  • 4.2.2
  • 4.2.1
  • 4.2.0
  • 4.1.4
  • 4.1.3
  • 4.1.2
  • 4.1.1
  • 4.1.0
  • 4.0.1
  • 4.0.0
  • 3.5.1
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.3
  • 3.2.2
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.2.1
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Aug 11th 2023
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'bibigon812-quagga', '4.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add bibigon812-quagga
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install bibigon812-quagga --version 4.5.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: ospf, bgp, quagga, zebra, pim

Documentation

bibigon812/quagga — version 4.5.0 Aug 11th 2023

Build Status

Table of Contents

  1. Module Description
  2. Notice
  3. Quick Start
  4. Zebra Options
  5. BGP
  6. OSPF
  7. PIM
  8. Reference

Module Description

This module provides management of network protocols without restarting services. All resources make changes to the configuration of services using commands, as if you are doing this through the CLI.

Notice

  • If you use SELinux set the sebool for Quagga:
setsebool zebra_write_config on
  • If you have over 500k routes on CentOS set UseDNS no in /etc/ssh/sshd_config
  • If you have the FullView on CentOS turn off NetworkManager.
systemctl stop NetworkManager
systemctl mask NetworkManager
  • Use the default value for the default_ipv4_unicast property of the quagga_bgp_router resource type.
  • The correct way to delete route-map or prefix-list rules is to use the ensure: absent.
quagga::zebra::route_maps:
  ROUTE_MAP_IN:
    rules:
      1:
        ensure: absent
        action: deny
        match: ip address prefix-list ADVERTISED_PREFIXES

Quick Start

Include with default parameters:

include quagga

Zebra Options

SNMP

quagga::zebra::agentx: false

Forwarding

quagga::zebra::global_opts:
  ip_forwarding: true
  ipv6_forwarding: true

Interfaces

quagga::zebra::interfaces:
  eth0:
    ip_address:
      - 10.0.0.1/24
  lo:
    ip_address:
      - 10.255.255.1/32
      - 172.16.255.1/32

Routes

The prefix and the nexthop are namevars.

quagga::zebra::routes:
  192.168.0.0/24:
    ensure: present
    nexthop: 10.0.0.100
    distance: 250
  192.168.1.0/24 Null0:
    ensure: present
    distance: 250
  192.168.1.0/24 10.0.0.100:
    ensure: present
    option: reject
    distance: 200

Access-Lists

  • standard: 1-99, 1300-1999
  • extended: 100-199, 2000-2699
  • zebra: [[:alpha:]]+
quagga::zebra::access_lists:
  1:
    remark: Standard access-list
    rules:
      - permit 127.0.0.1
      - deny any
  100:
    remark: Extended access-list
    rules:
      - permit ip 10.0.0.0 0.0.0.255 any
      - permit ip any 10.0.0.0 0.0.0.255
      - deny ip any any
  zebra_list:
    remark: Zebra access-list
    rules:
      - permit 10.0.0.0/24
      - deny any

Prefix Lists

quagga::zebra::prefix_lists:
  CONNECTED_PREFIXES:
    rules:
      500:
        action: permit
        le: 32
        prefix: 10.255.255.0/24
  OSPF_PREFIXES:
    rules:
      10:
        action: permit
        prefix: 172.16.255.0/24

Route Maps

quagga::zebra::route_maps:
  BGP_FROM_OSPF:
    rules:
      10:
        action: permit
        match: ip address prefix-list OSPF_PREFIXES
  CONNECTED:
    rules:
      10:
        action: permit
        match: ip address prefix-list CONNECTED_PREFIXES

BGP

BGP SNMP

quagga::bgp::agentx: false

BGP Router

quagga::bgp::router:
  as_number: 65000
  default_ipv4_unicast: false
  import_check: true
  router_id: 10.0.0.1
  keepalive: 3
  holdtime: 9

BGP Address Families

quagga::bgp::address_families:
  ipv4_unicast:
    aggregate_address:
      - 1.1.1.0/24 summary-only
      - 1.1.2.0/24 summary-only
    maximum_ebgp_paths: 2
    maximum_ibgp_paths: 10
    networks:
      - 1.1.1.0/23
      - 1.1.3.0/24
  ipv4_multicast:
    networks:
      - 230.0.0.0/8
      - 231.0.0.0/8
  ipv6_unicast:
    aggregate_address:
      - 2001:db8:0:2::/64
      - 2001:db8:0:3::/64
    networks:
      - 2001:db8::/64
      - 2001:db8:0:1::/64
      - 2001:db8:0:2::/63

BGP Peers

quagga::bgp::peers:
  CLIENTS:
    passive: true
    address_families:
      ipv4_unicast:
        activate: true
        default_originate: true
  INTERNAL:
    remote_as: 65000
    password: QWRF$345!#@$
    update_source: 10.0.0.1
    address_families:
      ipv4_unicast:
        activate: true
        next_hop_self: true
  10.0.0.2:
    peer_group: INTERNAL
    address_families:
      ipv4_unicast:
        peer_group: INTERNAL
  10.0.0.3:
    peer_group: INTERNAL
    address_families:
      ipv4_unicast:
        peer_group: INTERNAL
  10.0.0.10:
    peer_group: INTERNAL
    address_families:
      ipv4_multicast:
        activate: true
  172.16.0.2:
    peer_group: CLIENTS
    remote_as: 65001
    address_families:
      ipv4_unicast:
        peer_group: CLIENTS

BGP AS-Paths

quagga::bgp::as_paths:
  FROM_AS100:
    rules:
      - permit _100$

BGP Community Lists

quagga::bgp::community_lists:
  100:
    rules:
      - permit 65000:101
      - permit 65000:102
      - permit 65000:103
  200:
    rules:
      - permit 65000:201
      - permit 65000:202

OSPF

OSPF SNMP

quagga::ospf::agentx: false

OSPF Router

quagga::ospf::router:
  distribute_list:
    - ACCESS_LIST out kernel
    - ACCESS_LIST out isis
  log_adjacency_changes: true
  opaque: false
  passive_interfaces:
    - eth0
    - eth1
  redistribute:
    - connected route-map CONNECTED
  rfc1583: false
  router_id: 10.0.0.1

OSPF Areas

quagga::ospf::areas:
  0.0.0.0:
    networks:
      - 172.16.0.0/24
      - 192.168.0.0/24
    ranges:
      1.1.1.1/32:
        substitute: 1.1.1.0/24
  0.0.0.1:
    networks:
      - 172.16.1.0/24
      - 192.168.1.0/24
    stub: true

OSPF Interfaces

quagga::ospf::interfaces:
  eth0:
    dead_interval: 8
    hello_interval: 2
    mtu_ignore: true
    priority: 100

PIM

PIM SNMP

quagga::pim::agentx: false

PIM Router

quagga::pim::router:
  ip_multicast_routing: true

PIM Interfaces

quagga::pim::interfaces:
  eth0:
    igmp: true
    multicast: true
    pim_ssm: true

Reference

Classes

quagga

  • default_owner: overrides the default owner of Quagga configuration files in the file system. Defaults to quagga.
  • default_group: overrides the default group of Quagga configuration files in the file system. Defaults to quagga.
  • default_mode: overrides the default mode of Quagga configuration files in the system. Defaults to 0600.
  • default_content: overrides the initial content of quagga configuration files.
  • service_file: overrides the default path of the Quagga system configuration file in the file system.
  • service_file_manage: enable management of the service file. Defaults to true.
  • packages: Quagga package options.

quagga::bgp

  • agentx: enable agentx. Defaults to false.
  • config_file: configuration file of the BGP service.
  • config_file_manage: enable management of the BGP service setting file.
  • service_name: the name of the BGP service.
  • service_enable: enable the BGP service.
  • service_manage: enable management of the BGP service.
  • service_ensure: the state of the BGP Service.
  • service_opts: service start options.
  • router: BGP router options. See the type quagga_bgp_router.
  • peers: BGP peer options. See the type quagga_bgp_peer.
  • as_paths: as-path options. See the type quagga_bgp_as_path.
  • community_lists: community-list options. See the type quagga_bgp_community_list.
  • address_families: BGP address-family options. See the type quagga_bgp_address_family.

quagga::ospf

  • agentx: enable agentx. Defaults to false.
  • config_file: configuration file of the OSPF service.
  • config_file_manage: enable management of the OSPF service setting file.
  • service_name: the name of the OSPF service.
  • service_enable: enable the OSPF service.
  • service_manage: enable management of the OSPF service.
  • service_ensure: the state of the OSPF Service.
  • service_opts: service start options.
  • router: OSPF router options. See the type quagga_ospf_router.
  • areas: OSPF area options. See the type quagga_ospf_area.
  • interfaces: OSPF parameters of interfaces. See the type quagga_ospf_interface.

quagga::ospf::area

quagga::pim

  • agentx: enable agentx. Defaults to false.
  • config_file: configuration file of the PIM service.
  • config_file_manage: enable management of the PIM service setting file.
  • service_name: the name of the PIM service.
  • service_enable: enable the PIM service.
  • service_manage: enable management of the PIM service.
  • service_ensure: the state of the PIM Service.
  • service_opts: service start options.
  • router: PIM router options. See the type quagga_pim_router.
  • interfaces: OSPF parameters of interfaces. See the type quagga_pim_interface.

quagga::zebra

  • agentx: enable agentx. Defaults to false.
  • hostname: Quagga router hostname. Defaults to FQDN.
  • global_opts: Quagga global options. See the type quagga_global.
  • interfaces: Quagga interfacec options. See the type quagga_interface.
  • prefix_lists: Quagga prefix-list options. See the type quagga_prefix_list.
  • route_maps: Quagga route-map options. See the type quagga_rotue_map.
  • routes: parameters of the static routes. See the type quagga_static_route.
  • access_lists: parameters of the access-lists. See the type quagga_access_list.
  • config_file: configuration file if the Zebra service.
  • config_file_manage: enable management of the Zebra service setting file.
  • service_name: the name of the Zebra service.
  • service_enable: enable the Zebra service.
  • service_manage: enable management of the Zebra service.
  • service_ensure: the state of the Zebra Service.
  • service_opts: service start options.

Defines

quagga::bgp::peer

See types quagga_bgp_peer and quagga_bgp_peer_address_family.

Types

quagga_as_path

quagga_as_path { 'TEST_AS_PATH':
    ensure => present,
    rules => [
        'permit _100$',
        'permit _100_',
    ],
}
  • name: the name of the as-path access-list.
  • ensure: manage the state of this as-path list: absent, present.
  • rules: the list of rules.

quagga_bgp_router

quagga_bgp_router { 'bgp':
    ensure                   => present,
    as_number                => 65000,
    import_check             => true,
    default_ipv4_unicast     => false,
    default_local_preference => 100,
    redistribute             => [ 'ospf route-map BGP_FROM_OSPF', ],
    router_id                => '192.168.1.1',
    keepalive                => 3,
    holdtime                 => 9,
}
  • name: the instance name.
  • ensure: manage the state of this BGP router: absent, present.
  • as_number: the number of the AS.
  • import_check: check BGP network route exists in IGP. Defaults to false.
  • default_ipv4_unicast: activate ipv4-unicast for a peer by default. Defaults to false.
  • default_local_preference: default local preference. Defaults to 100.
  • redistribute: redistribute information from another routing protocol.
  • router_id: override configured router identifier.
  • keepalive: the default bgp peer keepalive interval. Defaults to 3.
  • holdtime: the default bgp peer holdtime. Defaults to 9.

quagga_bgp_address_family

quagga_bgp_address_family { 'ipv4_unicast':
  aggregate_address  => '192.168.0.0/24 summary-only',
  maximum_ebgp_paths => 2,
  maximum_ibgp_paths => 2,
  networks           => ['192.168.0.0/24', '172.16.0.0/24',],
}

quagga_bgp_address_family { 'ipv4_multicast':
  aggregate_address => '230.0.0.0/8 summary-only',
  networks          => [ '230.0.0.0/8', '231.0.0.0/8', ],
}
  • name: the address family.
  • aggregate_address: configure BGP aggregate entries.
  • maximum_ebgp_paths: forward packets over multiple ebgp paths.
  • maximum_ibgp_paths: forward packets over multiple ibgp paths.
  • networks: specify a network to announce via BGP.

quagga_bgp_peer

quagga_bgp_peer { '192.168.1.1':
    ensure     => present,
    peer_group => 'internal_peers',
}

quagga_bgp_peer { 'internal_peers':
    ensure     => present,
    local_as   => 65000,
    password   => 'QWRF$345!#@$',
    peer_group => true,
    remote_as  => 65000,
}
  • name: a neighbor IP address or a peer-group name.
  • ensure: manage the state of this BGP neighbor: absent, present: Defaults to present.
  • local_as: specify a local-as number.
  • passive: don't send open messages to this neighbor. Defaults to false.
  • password: set a password.
  • peer_group: member of the peer-group.
  • remote_as: specify a BGP neighbor AS.
  • shutdown: administratively shut down this neighbor. Defaults to false.
  • update_source: source of routing updates.

quagga_bgp_peer_address_family

quagga_bgp_peer_address_family { '192.168.0.2 ipv4_unicast':
    peer_group             => PEER_GROUP,
    activate               => true,
    allow_as_in            => 1,
    default_originate      => true,
    maximum_prefix         => 500000,
    next_hop_self          => true,
    prefix_list_in         => PREFIX_LIST,
    prefix_list_out        => PREFIX_LIST,
    remove_private_as      => true,
    route_map_export       => ROUTE_MAP,
    route_map_import       => ROUTE_MAP,
    route_map_in           => ROUTE_MAP,
    route_map_out          => ROUTE_MAP,
    route_reflector_client => false,
    route_server_client    => false,
    send_community         => 'both',
}
  • name: contains peer and address family names separated by space.
  • ensure: manage the state of this BGP neighbor: absent, present: Defaults to present.
  • activate: enable the Address Family for this Neighbor. Defaults to true.
  • allow_as_in: accept as-path with my AS present in it.
  • default_originate: originate default route to this neighbor. Defaults to false.
  • next_hop_self: disable the next hop calculation for this neighbor. Defaults to false.
  • peer_group: member of the peer-group.
  • prefix_list_in: filter updates from this neighbor.
  • prefix_list_out: filter updates to this neighbor.
  • route_map_export: apply map to routes coming from a Route-Server client.
  • route_map_import: apply map to routes going into a Route-Server client's table.
  • route_map_in: apply map to incoming routes.
  • route_map_out: apply map to outbound routes.
  • route_reflector_client: configure a neighbor as Route Reflector client. Defaults to false.
  • route_server_client: configure a neighbor as Route Server client. Defaults to false.

quagga_community_list

quagga_community_list { '100':
    ensure => present,
    rules  => [
        'permit 65000:50952',
        'permit 65000:31500',
    ],
}
  • name: community list number.
  • ensure: manage the state of this community list: absent, present: Defaults to present.
  • rules: the list of rules.

quagga_global

quagga_global { 'router-1.sandbox.local':
    password                    => 'password',
    enable_password             => 'enable_password',
    ip_forwarding               => true,
    ipv6_forwarding             => true,
    line_vty                    => true,
    service_password_encryption => true,
}
  • name: router instance name.
  • hostname: router hostname. Defaults to name.
  • password: set password for vty interface. If there is no password, a vty won’t accept connections.
  • enable_password: set enable password.
  • ip_forwarding: enable IP forwarding. Defaults to false.
  • ipv6_forwarding: enable IPv6 forwarding. Defaults to false.
  • line_vty: enter vty configuration mode. Defaults to true.
  • service_password_encryption: encrypt passwords. Defaults to false.

quagga_interface

quagga_interface { 'eth0':
    igmp       => true,
    ip_address => [ '10.0.0.1/24', '172.16.0.1/24', ],
}
  • name: the friendly name of the network interface.
  • bandwidth: set bandwidth value of the interface in kilobits/sec.
  • description: interface description.
  • enable: whether the interface should be enabled or not
  • ip_address: IP addresses. Defaults to [].
  • link_detect: enable link state detection. Defaults to false.

quagga_ospf_interface

quagga_ospf_interface { 'eth0':
    auth               => 'message-digest',
    message_digest_key => '1 md5 MESSAGEDIGEST',
    mtu_ignore         => true,
    hello_interval     => 2,
    dead_interval      => 8,
}
  • name: the friendly name of the network interface.
  • auth: interface authentication type: absent, message-digest . Defaults to absent.
  • message_digest_key: set OSPF authentication key to a cryptographic password: absent, KEYID md5 KEY . Defaults to absent.
  • cost: interface cost. Defaults to absent.
  • dead_interval: interval after which a neighbor is declared dead. Defaults to 40.
  • hello_interval: time between HELLO packets. Defaults to 10.
  • mtu_ignore: disable mtu mismatch detection. Defaults to false.
  • network: network type: absent, broadcast, non-broadcast, point-to-multipoint,point-to-point or loopback: Defaults to absent.
  • priority: router priority. Defaults to 1.
  • retransmit_interval: time between retransmitting lost link state advertisements. Defaults to 5.
  • transmit_delay: link state transmit delay. Defaults to 1.

quagga_pim_router

quagga_pim_router { 'pim':
    ip_multicast_routing => true
}
  • name: the name must be pim.
  • ip_multicast_routing: enable IP multicast forwarding. Defaults to false.

quagga_pim_interface

quagga_interface { 'eth0':
    igmp      => true,
    multicast => true,
    pim_ssm   => true,
}
  • name: the friendly name of the network interface.
  • igmp: enable IGMP. Defaults to false.
  • igmp_query_interval: IGMP query interval. Defaults to 125.
  • igmp_query_max_response_time_dsec: IGMP maximum query response time in deciseconds. Defaults to 100.
  • multicast: enable multicast flag for the interface. Defaults to false.
  • pim_ssm: enable PIM SSM operation. Defaults to false.

quagga_ospf_router

quagga_ospf_router { 'ospf':
    ensure             => present,
    abr_type           => 'cisco',
    distribute_list    => [ 'ACCESS_LIST out bgp', 'ACCESS_LIST out static', ],
    opaque             => true,
    passive_interfaces => [ 'eth0', 'eth1', ],
    redistribute       => [ 'connected', 'static route-map STATIC', ],
    rfc1583            => true,
    router_id          => '10.0.0.1',
}
  • name: the name must be ospf.
  • ensure: manage the state of this OSPF router: absent, present. Defaults to present.
  • abr_type: set OSPF ABR type. Defaults to cisco.
  • distribute_list: Filter networks in routing updates. Defaults to [].
  • log_adjacency_changes: log changes in adjacency. Defaults to false.
  • opaque: enable the Opaque-LSA capability (rfc2370). Defaults to false.
  • passive_interfaces: Suppress routing updates on interfaces. Defaults to [].
  • redistribute: redistribute information from another routing protocol.
  • rfc1583: enable the RFC1583Compatibility flag. Defaults to false.
  • router_id: Router-id for the OSPF process.

quagga_ospf_area

quagga_ospf_area { '0.0.0.0':
    ensure  => present,
    network => [ '10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16' ],
}
  • name: the OSPF area.
  • ensure: manage the state of this OSPF area: absent, present: Defaults to present.
  • access_list_expor: set the filter for networks announced to other areas.
  • access_list_import: set the filter for networks from other areas announced to the specified one.
  • prefix_list_export: filter networks sent from this area.
  • prefix_list_import: filter networks sent to this area.
  • networks: enable routing on an IP network. Defaults to [].
  • auth: enable authentication on this area: false, true, message-digest: Defaults to false.
  • stub: . configure the area to be a stub area: false, true, no-summary: Defaults to false.

qugga_ospf_area_range

quagga_ospf_area_range { '0.0.0.0 10.0.0.0/8':
  substitute: '10.0.0.0/8',
}
  • name: contains an OSPF area id and range.
  • advertise: Advertise this range. Defaults to true.
  • cost: User specified metric for this range.
  • substitute: Network prefix to be announced instead of range.

quagga_prefix_list

The prefix_list resource is a single sequence. You can use a chain of resources to describe comlpex prefix lists, for example:

quagga_prefix_list {'ADVERTISED_PREFIXES 10':
    ensure => present,
    action => 'permit',
    prefix => '192.168.0.0/16',
    le     => 24,
}
quagga_prefix_list {'ADVERTISED_PREFIXES 20':
    ensure => present,
    action => 'permit',
    prefix => '172.16.0.0/12',
    le     => 24,
}
  • name: name of the prefix-list and sequence number.
  • ensure: manage the state of this prefix list: absent, present: Defaults to present.
  • action: action can be permit or deny.
  • ge: minimum prefix length to be matched.
  • le: maximum prefix length to be matched.
  • prefix: IP prefix <network>/<length>.
  • proto: IP protocol version: ip, ipv6: Defaults to ip.

quagga_route_map

The route_map resource is a single sequence. You can use a chain of resources to describe complex route maps, for example:

quagga_route_map { 'bgp_out 10':
    ensure   => present,
    action   => 'permit',
    match    => 'ip address prefix-list ADVERTISED-PREFIXES'
    on_match => 'goto 65000',
}

quagga_route_map { 'bgp_out 99':
    ensure => present,
    action => 'deny',
}

quagga_route_map { 'bgp_out 65000':
    ensure   => present,
    action   => 'permit',
    match    => [
        'as-path AS_PATH_LIST',
        'community 100',
        'community 300 exact-match',
        'extcommunity 200',
        'interface eth0',
        'ip address 100',
        'ip next-hop ACCESS_LIST',
        'ip route-source prefix-list PREFIX_LIST',
        'ipv6 address IPV6_ACCESS_LIST',
        'ipv6 next-hop prefix-list IPV6_PREFIX_LIST',
        'local-preference 1000',
        'metric 0',
        'origin igp',
        'origin egp',
        'origin incomplete',
        'peer 1.1.1.1',
        'peer 100',
        'peer local',
        'probability 50',
        'tag 100',
    ],
    on_match => 'next',
    set      => [
        'aggregator as 65000',
        'as-path exclude 100 200',
        'as-path prepend 100 100 100',
        'as-path prepend last-as 5',
        'atomic-aggregate',
        'comm-list 100 delete',
        'community 0:666 additive',
        'community none',
        'forwarding address 1fff::',
        'ip next-hop 1.1.1.1',
        'ip next-hop peer-address',
        'ipv6 next-hop global 1::',
        'ipv6 next-hop local 1::',
        'ipv6 next-hop peer-address',
        'local-preference 1000',
        'metric 0',
        'metric-type type-1',
        'origin egp',
        'origin igp',
        'origin incomplete',
        'originator-id 1.1.1.1',
        'src 1.1.1.1',
        'tag 100',
        'vpn4 next-hop 1.1.1.1',
        'weight 100',
    ],
}
  • name: name of the route-map and sequence number of rule.
  • action: route map actions: deny,permit.
  • ensure: manage the state of this route map: absent, present: Defaults to present.
  • match: match values from routing table. Defaults to [].
  • on_match: exit policy on matches.
  • set: set values in destination routing protocol. Defaults to [].

quagga_static_route

quagga_static_route { '10.0.0.0/24':
  ensure   => present,
  nexthop  => '1.1.1.1',
  option   => 'reject',
  distance => 250,
}

quagga_static_route { '192.168.0.0/24 1.1.1.1':
  ensure => present,
  distance => 250,
}
  • prefix: namevar. IP destination prefix.
  • nexthop: namevar. Specifies IP or the interface name of the nexthop router. Defaults to Null0.
  • distance: Specifies the distance value for this route. Values are 1-255.
  • option: Sets reject or blackhole for this route. Values are reject and blackhole.

quagga_access_list

quagga_access_list {'1':
  ensure => present,
  remark => 'IP standard access list',
  rules  => [
    'deny 10.0.0.128 0.0.0.127',
    'deny 10.0.101.193',
    'permit 10.0.0.0 0.0.255.255',
    'permit 192.168.10.1'.
    'deny any'
  ]
}

quagga_access_list {'100':
  ensure   => present,
  remark   => 'IP extended access-list',
  rules    => [
    'deny ip host 10.0.1.100 any',
    'permit ip 10.0.1.0 0.0.0.255 any',
    'deny ip any any'
  ]
}

quagga_access_list {'a_word':
  ensure => present,
  remark => 'IP zebra access-list',
  rules  => [
    'deny 192.168.0.0/23',,
    'permit 192.168.0.0/16',
    'deny any',
  ]
}
  • name: The number of this access list.
  • remark: Specifies the remark for this access-list.
  • rules: Permits and denies for this rule. Defaults to [].