Projet

Général

Profil

Révision f9de4dee

IDf9de4dee2e9b64b8deb17999b3ed4f9b66d45647
Parent 282c51cf
Enfant 5d554e75

Ajouté par Tim Meusel il y a plus d'un an

out::icmp: reformat code

Voir les différences:

manifests/rules/out/icmp.pp
8 8
) {
9 9
  if $v4_types {
10 10
    $v4_types.each | String $icmp_type | {
11
      nftables::rule {
12
        'default_out-accept_icmpv4':
13
          content => "ip protocol icmp icmp type ${icmp_type} accept",
14
          order   => $order,
11
      nftables::rule { 'default_out-accept_icmpv4':
12
        content => "ip protocol icmp icmp type ${icmp_type} accept",
13
        order   => $order,
15 14
      }
16 15
    }
17 16
  } else {
18
    nftables::rule {
19
      'default_out-accept_icmpv4':
20
        content => 'ip protocol icmp accept',
21
        order   => $order,
17
    nftables::rule { 'default_out-accept_icmpv4':
18
      content => 'ip protocol icmp accept',
19
      order   => $order,
22 20
    }
23 21
  }
24 22

  
25 23
  if $v6_types {
26 24
    $v6_types.each | String $icmp_type | {
27
      nftables::rule {
28
        'default_out-accept_icmpv6':
29
          content => "ip6 nexthdr ipv6-icmp icmpv6 type ${icmp_type} accept",
30
          order   => $order,
25
      nftables::rule { 'default_out-accept_icmpv6':
26
        content => "ip6 nexthdr ipv6-icmp icmpv6 type ${icmp_type} accept",
27
        order   => $order,
31 28
      }
32 29
    }
33 30
  } else {
34
    nftables::rule {
35
      'default_out-accept_icmpv6':
36
        content => 'ip6 nexthdr ipv6-icmp accept',
37
        order   => $order,
31
    nftables::rule { 'default_out-accept_icmpv6':
32
      content => 'ip6 nexthdr ipv6-icmp accept',
33
      order   => $order,
38 34
    }
39 35
  }
40 36
}

Formats disponibles : Unified diff