summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules-vyos <vyos@ourhouse.org.uk>2018-07-05 14:37:53 +0100
committerChristian Poessinger <christian@poessinger.com>2018-07-05 15:37:53 +0200
commit7488bbad3118596c1eaef9e0acb9819b039ea6bf (patch)
tree83534657d202a344f0b011bf8c47a8eb9f7c9924
parenta76f517ef9d2c7f10f5df936d61a34783c9b0d4c (diff)
downloadvyos-1x-7488bbad3118596c1eaef9e0acb9819b039ea6bf.tar.gz
vyos-1x-7488bbad3118596c1eaef9e0acb9819b039ea6bf.zip
T733: snmp.py: set IPv6 community string
* Fixed snmp.py to correctly supply 'community6' community strings, so that ipv6 will work.
-rwxr-xr-xsrc/conf_mode/snmp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 1ef69ceb2..001e6c6b4 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -144,6 +144,7 @@ agentaddress unix:/run/snmpd.socket{% if listen_on %}{% for li in listen_on %},{
{% if c.network -%}
{% for network in c.network %}
{{ c.authorization }}community {{ c.name }} {{ network }}
+{{ c.authorization }}community6 {{ c.name }} {{ network }}
{% endfor %}
{% else %}
{{ c.authorization }}community {{ c.name }}