Révision 11bf7237
lint_fix results
manifests/rules/icmp.pp | ||
---|---|---|
5 | 5 |
) { |
6 | 6 |
if $v4_types { |
7 | 7 |
$v4_types.each | String $icmp_type | { |
8 |
nftables::rule{ |
|
8 |
nftables::rule {
|
|
9 | 9 |
"default_in-accept_icmpv4_${regsubst(split($icmp_type, ' ')[0], '-', '_', 'G')}": |
10 | 10 |
content => "ip protocol icmp icmp type ${icmp_type} accept", |
11 | 11 |
order => $order, |
12 | 12 |
} |
13 | 13 |
} |
14 | 14 |
} else { |
15 |
nftables::rule{ |
|
15 |
nftables::rule {
|
|
16 | 16 |
'default_in-accept_icmpv4': |
17 | 17 |
content => 'ip protocol icmp accept', |
18 | 18 |
order => $order, |
19 |
}
|
|
19 |
} |
|
20 | 20 |
} |
21 | 21 |
|
22 | 22 |
if $v6_types { |
23 | 23 |
$v6_types.each | String $icmp_type | { |
24 |
nftables::rule{ |
|
24 |
nftables::rule {
|
|
25 | 25 |
"default_in-accept_icmpv6_${regsubst(split($icmp_type, ' ')[0], '-', '_', 'G')}": |
26 | 26 |
content => "ip6 nexthdr ipv6-icmp icmpv6 type ${icmp_type} accept", |
27 | 27 |
order => $order, |
28 | 28 |
} |
29 | 29 |
} |
30 | 30 |
} else { |
31 |
nftables::rule{ |
|
31 |
nftables::rule {
|
|
32 | 32 |
'default_in-accept_icmpv6': |
33 | 33 |
content => 'ip6 nexthdr ipv6-icmp accept', |
34 | 34 |
order => $order, |
35 |
}
|
|
35 |
} |
|
36 | 36 |
} |
37 | 37 |
} |
Formats disponibles : Unified diff