diff options
author | Thore Bödecker <me@foxxx0.de> | 2020-07-02 15:34:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 15:34:54 +0200 |
commit | 5929f907fd3e74150f1b84640a80d6fd5472419a (patch) | |
tree | 99d83798d646d6eabb901ad72e1e0d6d731cc9b2 /types | |
parent | 8d967c7b915fec97846b1d6b567489646b3096a3 (diff) | |
parent | 3d1a935519f01a7c5ad23d54d0b997876967dbf3 (diff) | |
download | puppet-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.pp | 13 |
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+$'], +] |