From 79a30983dd73c22212c74c9eb69cac91407690df Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 9 Feb 2020 10:48:37 +0000 Subject: snmp: T1931: change calling order when setting marker flag --- src/conf_mode/snmp.py | 4 +--- 1 file changed, 1 insertion(+), 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') -- cgit v1.2.3