diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-28 08:25:39 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-28 08:25:39 +0100 |
commit | c87ad948999c28c3c9449f98d60b545481ea29d5 (patch) | |
tree | 18b188cf73266be95c62f128afe5d155a7a03bf4 /src/op_mode/show_igmpproxy.py | |
parent | 41f79409c742b6a020318b196cbaa52439845d6d (diff) | |
download | vyos-1x-c87ad948999c28c3c9449f98d60b545481ea29d5.tar.gz vyos-1x-c87ad948999c28c3c9449f98d60b545481ea29d5.zip |
vyos.template: T2720: fix remaining in-line time_block syntax
Commit a2ac9fac ("vyos.template: T2720: always enable Jinja2 trim_blocks
feature") globally enabled the trim_blocks feature. Some templates still used
in-line trim_blocks "{%"- or "-%}" which caused miss-placed line endings.
This is fixed by removing all in-line trim_block statememnts of Jinja2 templates.
Diffstat (limited to 'src/op_mode/show_igmpproxy.py')
-rwxr-xr-x | src/op_mode/show_igmpproxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/op_mode/show_igmpproxy.py b/src/op_mode/show_igmpproxy.py index 5ccc16287..4714e494b 100755 --- a/src/op_mode/show_igmpproxy.py +++ b/src/op_mode/show_igmpproxy.py @@ -36,9 +36,9 @@ import vyos.config # eth0.3 0.0b 0 0.0b 0 xxx.xxx.x.7 # tun1 0.0b 0 0.0b 0 xxx.xxx.xxx.2 vif_out_tmpl = """ -{%- for r in data %} +{% for r in data %} {{ "%-10s"|format(r.interface) }} {{ "%-12s"|format(r.bytes_in) }} {{ "%-12s"|format(r.pkts_in) }} {{ "%-12s"|format(r.bytes_out) }} {{ "%-12s"|format(r.pkts_out) }} {{ "%-15s"|format(r.loc) }} -{%- endfor %} +{% endfor %} """ # Output Template for "show ip multicast mfc" command @@ -48,9 +48,9 @@ vif_out_tmpl = """ # xxx.xxx.xxx.250 xxx.xx.xxx.75 -- # xxx.xxx.xx.124 xx.xxx.xxx.26 -- mfc_out_tmpl = """ -{%- for r in data %} +{% for r in data %} {{ "%-15s"|format(r.group) }} {{ "%-15s"|format(r.origin) }} {{ "%-12s"|format(r.pkts) }} {{ "%-12s"|format(r.bytes) }} {{ "%-12s"|format(r.wrong) }} {{ "%-10s"|format(r.iif) }} {{ "%-20s"|format(r.oifs|join(', ')) }} -{%- endfor %} +{% endfor %} """ parser = argparse.ArgumentParser() |