summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-05 01:04:54 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-05 01:10:12 +0100
commitf0edf379f6b34ee49865ea030a6356dbb3ea1ce3 (patch)
tree2d84ec5f7d2a640406b93a4b427ef19302daef5b /src/conf_mode/snmp.py
parentb7a5e9dfcb6fda30b31309dbfd3353592ae3f180 (diff)
downloadvyos-1x-f0edf379f6b34ee49865ea030a6356dbb3ea1ce3.tar.gz
vyos-1x-f0edf379f6b34ee49865ea030a6356dbb3ea1ce3.zip
T950: make sure agentx is enabled in FRR only when SNMP is setup, and supress duplicate error messages.
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 7d695bb4c..026f6d2f7 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -830,8 +830,8 @@ def apply(snmp):
os.system('vyos_libexec_dir=/usr/libexec/vyos /opt/vyatta/sbin/my_delete service snmp v3 user "{0}" auth plaintext-key > /dev/null'.format(cfg['user']))
os.system('vyos_libexec_dir=/usr/libexec/vyos /opt/vyatta/sbin/my_delete service snmp v3 user "{0}" privacy plaintext-key > /dev/null'.format(cfg['user']))
- # Enable AgentX in FRR
- os.system('vtysh -c "configure terminal" -c "agentx"')
+ # Enable AgentX in FRR
+ os.system('vtysh -c "configure terminal" -c "agentx" >/dev/null')
return None