Changeset 13886 in genesis
- Timestamp:
- May 27, 2017, 2:43:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13884 r13886 1190 1190 # INFO: {{ global_rdr_rules|count }} global_rdr_rules active on this node. 1191 1191 {% for protocol, src_port,dest_ip,dest_port,comment in global_rdr_rules -%} 1192 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ " -%14s"|format(dest_ip) }} port {{ "%4s"|format(dest_port) }} # {{ comment }}1192 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ "%-14s"|format(dest_ip) }} port {{ "%4s"|format(dest_port) }} # {{ comment }} 1193 1193 {% endfor -%} 1194 1194 # INFO: {{ rdr_rules|count }} node specific rdr_rules defined. 1195 1195 {% for protocol, src_port,dest_ip,dest_port,comment in rdr_rules -%} 1196 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ dest_ip }} port {{ dest_port}} # {{ comment }}1196 rdr on $ext_if inet proto {{ protocol }} from any to $ext_if port {{ src_port }} tag SRV -> {{ "%-14s"|format(dest_ip) }} port {{ "%4s"|format(dest_port) }} # {{ comment }} 1197 1197 {% endfor -%} 1198 1198 """).render(datadump)
Note:
See TracChangeset
for help on using the changeset viewer.