diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-12 18:40:58 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-12 18:40:58 +0200 |
commit | 83721c1ce672b76d40c710f38b0ab05c370a2191 (patch) | |
tree | 8c45462d74569853fb70ea54ea19df4718eca07b /src/op_mode | |
parent | 73e58b7d000c92608b263f2f52b60d21d741db04 (diff) | |
download | vyos-1x-83721c1ce672b76d40c710f38b0ab05c370a2191.tar.gz vyos-1x-83721c1ce672b76d40c710f38b0ab05c370a2191.zip |
vrf: T31: remove supefluous new-lines for each VRF instance
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/show_vrf.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/op_mode/show_vrf.py b/src/op_mode/show_vrf.py index 94358c6e4..3c7a90205 100755 --- a/src/op_mode/show_vrf.py +++ b/src/op_mode/show_vrf.py @@ -20,12 +20,11 @@ from json import loads from vyos.util import cmd -vrf_out_tmpl = """ -VRF name state mac address flags interfaces +vrf_out_tmpl = """VRF name state mac address flags interfaces -------- ----- ----------- ----- ---------- -{% for v in vrf %} +{%- for v in vrf %} {{"%-16s"|format(v.ifname)}} {{ "%-8s"|format(v.operstate | lower())}} {{"%-17s"|format(v.address | lower())}} {{ v.flags|join(',')|lower()}} {{v.members|join(',')|lower()}} -{% endfor %} +{%- endfor %} """ |