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