This file is indexed.

/usr/lib/python2.7/dist-packages/napalm_eos/templates/delete_snmp_config.j2 is in python-napalm-eos 0.6.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{% if (location is defined) and location %}
no snmp-server location "{{location}}"
{% endif %}
{% if (contact is defined) and contact %}
no snmp-server contact "{{contact}}"
{% endif %}
{% if (chassis_id is defined) and chassis_id %}
no snmp-server chassis-id "{{chassis_id}}"
{% endif %}
{% if (community is defined) and community %}
{%- if community is mapping -%}
{% for comm_name, comm_details in community.iteritems() %}
no snmp-server community {{comm_name}}
{% endfor %}
{%- elif community is string -%}
no snmp-server community {{community}}
{%- endif -%}
{% endif %}