aboutsummaryrefslogtreecommitdiff
path: root/types/port.pp
blob: da2ea23072d60849492de833ce751e681cd11ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# @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+$'],
]