diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-11-05 01:04:54 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-11-05 01:04:54 +0100 |
commit | af3a5142dce9fb3d6f3fecdbccfd1cae23b31c62 (patch) | |
tree | 92dd078f3b3d703b31fc206df2e2bad22cf65f25 | |
parent | 2b8d48bcd77134dff741158c81f7fadf3183e280 (diff) | |
download | vyos-1x-af3a5142dce9fb3d6f3fecdbccfd1cae23b31c62.tar.gz vyos-1x-af3a5142dce9fb3d6f3fecdbccfd1cae23b31c62.zip |
T950: make sure agentx is enabled in FRR only when SNMP is setup, and supress duplicate error messages.
-rwxr-xr-x | src/conf_mode/snmp.py | 4 |
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 |