Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / templates / simplerule.epp @ 83382bb5

Historique | Voir | Annoter | Télécharger (425 octets)

1
<%- | String                  $action,
2
      Optional[String]        $comment,
3
      Optional[Integer]       $dport,
4
      Optional[String]        $proto,
5
| -%>
6
<%- if $proto and $dport  {
7
  $_destination = "${proto} dport ${dport}"
8
} else {
9
  $_destination = undef
10
} -%>
11
<%- if $comment {
12
  $_comment = "comment \"${comment}\""
13
} else {
14
  $_comment = undef
15
} -%>
16
<%= strip([$_destination, $_comment, $action].join(' ')) -%>