diff --git a/napalm_iosxr/templates/snmp_config.j2 b/napalm_iosxr/templates/snmp_config.j2 index b75e5d1..4ea4d7d 100644 --- a/napalm_iosxr/templates/snmp_config.j2 +++ b/napalm_iosxr/templates/snmp_config.j2 @@ -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 %}