Projet

Général

Profil

Révision 8c00b818

ID8c00b8189c040d4eb0ca1a810bf9051e972f7e93
Parent 6a4ffead
Enfant beaf4ee3

Ajouté par Nacho Barrientos il y a plus de 4 ans

Pull up rule regexp to type aliases

Voir les différences:

manifests/simplerule.pp
54 54
#   Enable traffic counters for the matched traffic.
55 55
define nftables::simplerule (
56 56
  Enum['present','absent'] $ensure = 'present',
57
  Pattern[/^[a-zA-Z0-9_]+(-\d+)?$/] $rulename = $title,
57
  Nftables::SimpleRuleName $rulename = $title,
58 58
  Pattern[/^\d\d$/] $order = '50',
59 59
  String $chain  = 'default_in',
60 60
  String $table = 'inet-filter',

Formats disponibles : Unified diff