Defined Type: interface::routing_table

Defined in:
modules/interface/manifests/routing_table.pp

Summary

defines a routing table name

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • number (Integer[1, 252])

    numeric identifier of this routing table

  • ensure (Wmflib::Ensure) (defaults to: 'present')

    ensure



5
6
7
8
9
10
11
12
13
# File 'modules/interface/manifests/routing_table.pp', line 5

define interface::routing_table (
    Integer[1, 252] $number,
    Wmflib::Ensure  $ensure = 'present',
) {
    file { "/etc/iproute2/rt_tables.d/${title}.conf":
        ensure  => stdlib::ensure($ensure, 'file'),
        content => "${number} ${title}\n",
    }
}