Added FQDN resolving in mail notification templates to denote the host that an action...
[flowspy] / templates / rule_edit_mail.txt
1 {% load tofqdn %}
2 A new rule edit job has spawned
3
4 Peer: {{route.applier.get_profile.peer.peer_name}}
5 User {{route.applier.username}} requested the application of the following rule from address {{address}} {% if address|tofqdn %}({{address|tofqdn}}){% endif %}:
6
7 Match
8 * Dst Addr:{{route.destination}}
9 * Src Addr: {{route.source}}
10 * Ports:{% for port in route.ports.all %}
11   {{ port }}{% if not forloop.last %}, {% endif %}
12 {% endfor %}
13 * Source Ports:{% for port in route.sourceport.all %}{{ port }}{% if not forloop.last %}, {% endif %}{% endfor %}
14 * Destination Ports:{% for port in route.destinationport.all %}{{ port }}{% if not forloop.last %}, {% endif %}{% endfor %}
15
16 *Then:{% for then in route.then.all %}{{ then }}{% if not forloop.last %}, {% endif %}{% endfor %}