summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 10:48:37 +0000
committerChristian Poessinger <christian@poessinger.com>2020-02-09 10:48:37 +0000
commit79a30983dd73c22212c74c9eb69cac91407690df (patch)
treea0e7bb22e56566d1cf7882323713f5d8a58f6b2b /src/conf_mode/snmp.py
parentcd3c1f343fc96b75c12a7774a6f7bb99f1d2aedc (diff)
downloadvyos-1x-79a30983dd73c22212c74c9eb69cac91407690df.tar.gz
vyos-1x-79a30983dd73c22212c74c9eb69cac91407690df.zip
snmp: T1931: change calling order when setting marker flag
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index dc17939d3..db5f552fc 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -776,6 +776,7 @@ def apply(snmp):
}
# No need to take care about the VyOS internal user
if cfg['user'] == snmp['vyos_user']:
+ ready = True
continue
# Now update the running configuration
@@ -786,9 +787,6 @@ 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']))
- # set marker
- ready = True
-
# Enable AgentX in FRR
os.system('vtysh -c "configure terminal" -c "agentx" >/dev/null')