summaryrefslogtreecommitdiff
path: root/src/op_mode/snmp_v3.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/op_mode/snmp_v3.py')
-rwxr-xr-xsrc/op_mode/snmp_v3.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/op_mode/snmp_v3.py b/src/op_mode/snmp_v3.py
index 92601f15e..a1f76f0bc 100755
--- a/src/op_mode/snmp_v3.py
+++ b/src/op_mode/snmp_v3.py
@@ -37,7 +37,7 @@ SNMPv3 Groups:
Group View
----- ----
- {% if group -%}{% for g in group -%}
+ {% if group %}{% for g in group %}
{{ "%-20s" | format(g.name) }}{{ g.view }}({{ g.mode }})
{% endfor %}{% endif %}
"""
@@ -47,7 +47,7 @@ SNMPv3 Trap-targets:
Tpap-target Port Protocol Auth Priv Type EngineID User
----------- ---- -------- ---- ---- ---- -------- ----
- {% if trap -%}{% for t in trap -%}
+ {% if trap %}{% for t in trap %}
{{ "%-20s" | format(t.name) }} {{ t.port }} {{ t.proto }} {{ t.auth }} {{ t.priv }} {{ t.type }} {{ "%-32s" | format(t.engID) }} {{ t.user }}
{% endfor %}{% endif %}
"""
@@ -57,14 +57,14 @@ SNMPv3 Users:
User Auth Priv Mode Group
---- ---- ---- ---- -----
- {% if user -%}{% for u in user -%}
+ {% if user %}{% for u in user %}
{{ "%-20s" | format(u.name) }}{{ u.auth }} {{ u.priv }} {{ u.mode }} {{ u.group }}
{% endfor %}{% endif %}
"""
VIEW_OUTP_TMPL_SRC = """
SNMPv3 Views:
- {% if view -%}{% for v in view %}
+ {% if view %}{% for v in view %}
View : {{ v.name }}
OIDs : .{{ v.oids | join("\n .")}}
{% endfor %}{% endif %}