aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKilian Engelhardt <kilian.engelhardt@godaddy.com>2021-02-03 21:32:57 +0100
committerKilian Engelhardt <kilian.engelhardt@godaddy.com>2021-02-16 13:11:59 +0100
commitc8f0e0424490cb5d06785266ac9b4214200a7070 (patch)
treec082e822af27e9638f6373e6a3348fd1af761943
parente22b12852d840869edb75ba1fbf767af75ba1b6d (diff)
downloadpuppet-ferm-c8f0e0424490cb5d06785266ac9b4214200a7070.tar.gz
puppet-ferm-c8f0e0424490cb5d06785266ac9b4214200a7070.tar.bz2
add 'Integer' to 'Ferm::Protocols' to allow numberic values
> The specified protocol can be one of tcp, udp, udplite, icmp, icmpv6,esp, > ah, sctp, mh or the special keyword "all", or it can be a numeric value, > representing one of these protocols or a different one. source: https://ipset.netfilter.org/iptables.man.html Also see [0] for Assigned Internet Protocol Numbers. -- [0] https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
-rw-r--r--types/protocols.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/protocols.pp b/types/protocols.pp
index cdd76b2..1c11159 100644
--- a/types/protocols.pp
+++ b/types/protocols.pp
@@ -1,5 +1,7 @@
# @summary a list of allowed protocolls to match
type Ferm::Protocols = Variant[
+ Integer[0, 255],
+ Array[Integer[0, 255]],
Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all'],
Array[Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all']],
]