Puppet Class: nftables::rules::ospf3

Defined in:
manifests/rules/ospf3.pp

Summary

manage in ospf3

Overview

Parameters:

  • iifname (Array[String[1]]) (defaults to: [])

    optional list of incoming interfaces to allow traffic



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/rules/ospf3.pp', line 6

class nftables::rules::ospf3 (
  Array[String[1]] $iifname = [],
) {
  if empty($iifname) {
    $_iifname = ''
  } else {
    $iifdata = $iifname.map |String[1] $interface| { "\"${interface}\"" }.join(', ')
    $_iifname = "iifname { ${iifdata} } "
  }
  nftables::rule { 'default_in-ospf3':
    content => "${_iifname}ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto 89 accept",
  }
}