Rewriting the SNMP configuration as XML/Python requires that the running VyOS configuration is altered by the python script. This is aweful.
The reason is that if a user specifies a plaintext password it will be converted to an encrypted one during SNMP startup. Later this encrypted pasword is re-read and set as encrypted-key in the running config whereas the plaintext-key node is deleted.
os.system('/opt/vyatta/sbin/my_delete service snmp v3 user "nms" auth plaintext-key')
sh: /validate-value.py: No such file or directory
The available environment has been extracted using `os.system('env')`