diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-09 10:48:37 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-09 10:48:37 +0000 |
commit | 79a30983dd73c22212c74c9eb69cac91407690df (patch) | |
tree | a0e7bb22e56566d1cf7882323713f5d8a58f6b2b /src/conf_mode/snmp.py | |
parent | cd3c1f343fc96b75c12a7774a6f7bb99f1d2aedc (diff) | |
download | vyos-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-x | src/conf_mode/snmp.py | 4 |
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') |