aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorThore Bödecker <me@foxxx0.de>2020-07-02 15:34:54 +0200
committerGitHub <noreply@github.com>2020-07-02 15:34:54 +0200
commit5929f907fd3e74150f1b84640a80d6fd5472419a (patch)
tree99d83798d646d6eabb901ad72e1e0d6d731cc9b2 /types
parent8d967c7b915fec97846b1d6b567489646b3096a3 (diff)
parent3d1a935519f01a7c5ad23d54d0b997876967dbf3 (diff)
downloadpuppet-ferm-5929f907fd3e74150f1b84640a80d6fd5472419a.tar.gz
puppet-ferm-5929f907fd3e74150f1b84640a80d6fd5472419a.tar.bz2
Merge pull request #115 from voxpupuli/release-v5.0.0
Release v5.0.0
Diffstat (limited to 'types')
-rw-r--r--types/port.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/types/port.pp b/types/port.pp
new file mode 100644
index 0000000..dc2b7e1
--- /dev/null
+++ b/types/port.pp
@@ -0,0 +1,13 @@
+# @summary ferm port-spec
+#
+# allowed variants:
+# -----------------
+# + single Integer port
+# + Array of Integers (creates a multiport matcher)
+# + ferm range port-spec (pair of colon-separated integer, assumes 0 if first is omitted)
+
+type Ferm::Port = Variant[
+ Stdlib::Port,
+ Array[Stdlib::Port],
+ Pattern['^\d*:\d+$'],
+]