Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #130 from wasabi222/patch-1
Browse files Browse the repository at this point in the history
add snmp-server prefix to community strings
  • Loading branch information
mirceaulinic authored Jul 12, 2017
2 parents 1a880c6 + 411185c commit b922ecb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions napalm_iosxr/templates/snmp_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ snmp-server chassis-id "{{chassis_id}}"
{% for comm_name, comm_details in community.iteritems() %}
{% if (comm_details is defined) and comm_details %}
{% if (comm_details.get('mode') is defined) and comm_details.get('mode') == 'rw' %}
community {{comm_name}} RW
snmp-server community {{comm_name}} RW
{% else %}
community {{comm_name}} RO
snmp-server community {{comm_name}} RO
{% endif %}
{% else %}
community {{comm_name}} RO
snmp-server community {{comm_name}} RO
{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit b922ecb

Please sign in to comment.