Skip to content

Commit

Permalink
[snmp] support multiple community strings
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms committed Apr 11, 2018
1 parent 4c1419c commit 6f6494d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dockers/docker-snmp-sv2/snmpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1

# Default access to basic system info
{% if snmp_rocommunity is string %}
rocommunity {{ snmp_rocommunity }}
{% elif snmp_rocommunity is iterable %}
{% for community in snmp_rocommunity %}
rocommunity {{ community }}
{% endfor %}
{% endif %}


###############################################################################
Expand Down

0 comments on commit 6f6494d

Please sign in to comment.