Révision 5d554e75
out::icmp: Add parameter documentation
REFERENCE.md | ||
---|---|---|
965 | 965 |
|
966 | 966 |
Data type: `Optional[Array[String]]` |
967 | 967 |
|
968 |
|
|
968 |
ICMP v4 types that should be allowed |
|
969 | 969 |
|
970 | 970 |
Default value: `undef` |
971 | 971 |
|
... | ... | |
973 | 973 |
|
974 | 974 |
Data type: `Optional[Array[String]]` |
975 | 975 |
|
976 |
|
|
976 |
ICMP v6 types that should be allowed |
|
977 | 977 |
|
978 | 978 |
Default value: `undef` |
979 | 979 |
|
... | ... | |
981 | 981 |
|
982 | 982 |
Data type: `String` |
983 | 983 |
|
984 |
|
|
984 |
the ordering of the rules |
|
985 | 985 |
|
986 | 986 |
Default value: `'10'` |
987 | 987 |
|
manifests/rules/out/icmp.pp | ||
---|---|---|
1 | 1 |
# @summary control outbound icmp packages |
2 |
# |
|
3 |
# @param v4_types ICMP v4 types that should be allowed |
|
4 |
# @param v6_types ICMP v6 types that should be allowed |
|
5 |
# @param order the ordering of the rules |
|
6 |
# |
|
2 | 7 |
class nftables::rules::out::icmp ( |
3 |
# lint:ignore:parameter_documentation |
|
4 | 8 |
Optional[Array[String]] $v4_types = undef, |
5 | 9 |
Optional[Array[String]] $v6_types = undef, |
6 | 10 |
String $order = '10', |
7 |
# lint:endignore |
|
8 | 11 |
) { |
9 | 12 |
if $v4_types { |
10 | 13 |
$v4_types.each | String $icmp_type | { |
Formats disponibles : Unified diff