Révision de3e7bb0
fix datatype for $dport
manifests/rules/dnat4.pp | ||
---|---|---|
8 | 8 |
String[1] $chain = 'default_fwd', |
9 | 9 |
Optional[String[1]] $iif = undef, |
10 | 10 |
Enum['tcp','udp'] $proto = 'tcp', |
11 |
Optional[Variant[String,Stdlib::Port]] $dport = '',
|
|
11 |
Optional[Variant[String,Stdlib::Port]] $dport = undef,
|
|
12 | 12 |
Enum['present','absent'] $ensure = 'present', |
13 | 13 |
# lint:endignore |
14 | 14 |
) { |
... | ... | |
17 | 17 |
default => "iifname ${iif} ", |
18 | 18 |
} |
19 | 19 |
$filter_port = $dport ? { |
20 |
'' => $port,
|
|
20 |
undef => $port,
|
|
21 | 21 |
default => $dport, |
22 | 22 |
} |
23 | 23 |
$nat_port = $dport ? { |
24 |
'' => '',
|
|
24 |
undef => '',
|
|
25 | 25 |
default => ":${dport}", |
26 | 26 |
} |
27 | 27 |
|
Formats disponibles : Unified diff