summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-10-20 15:40:06 +0200
committerChristian Poessinger <christian@poessinger.com>2018-10-20 15:40:06 +0200
commit06e3d57867d2da4118ea0328fb3cf9074081f444 (patch)
treedc70aa4a6a7f3041afdef05a312cb330c5994e96
parent2ece325c3a45d4ce82ed72de64d0e376a50ca408 (diff)
downloadvyos-1x-06e3d57867d2da4118ea0328fb3cf9074081f444.tar.gz
vyos-1x-06e3d57867d2da4118ea0328fb3cf9074081f444.zip
SNMP: update comments in Python generator
-rwxr-xr-xsrc/conf_mode/snmp.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 37f5e7acd..19d89e13c 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -47,7 +47,7 @@ OIDs = {
'des' : '.1.3.6.1.6.3.10.1.2.2',
'none': '.1.3.6.1.6.3.10.1.2.1'
}
-# SNMPS template - be careful if you edit the template.
+# SNMP template (/etc/snmp/snmp.conf) - be careful if you edit the template.
client_config_tmpl = """
### Autogenerated by snmp.py ###
{% if trap_source -%}
@@ -56,7 +56,7 @@ clientaddr {{ trap_source }}
"""
-# SNMPS template - be careful if you edit the template.
+# SNMP template (/usr/share/snmp/snmpd.conf) - be careful if you edit the template.
access_config_tmpl = """
### Autogenerated by snmp.py ###
{%- for u in v3_users %}
@@ -67,7 +67,7 @@ rwuser {{ vyos_user }}
"""
-# SNMPS template - be careful if you edit the template.
+# SNMP template (/var/lib/snmp/snmpd.conf) - be careful if you edit the template.
user_config_tmpl = """
### Autogenerated by snmp.py ###
# user
@@ -87,7 +87,7 @@ oldEngineID {{ v3_engineid }}
{%- endif %}
"""
-# SNMPS template - be careful if you edit the template.
+# SNMP template (/etc/snmp/snmpd.conf) - be careful if you edit the template.
daemon_config_tmpl = """
### Autogenerated by snmp.py ###
@@ -204,6 +204,7 @@ group {{ u.group }} tsm {{ u.name }}
{%- endif %}
"""
+# SNMP template (/etc/default/snmpd) - be careful if you edit the template.
init_config_tmpl = """
### Autogenerated by snmp.py ###
# This file controls the activity of snmpd