While trying to create a minimal config to reproduce an issue, I tried to delete system ntp|syslog. Removing the syslog config gives the following exception/traceback:
[edit]
vyos@vyos# delete system ntp
[edit]
vyos@vyos# delete system syslog
[edit]
vyos@vyos# commit
[ system syslog ]
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/syslog.py", line 282, in <module>
generate(c)
File "/usr/libexec/vyos/conf_mode/syslog.py", line 228, in generate
config_text = tmpl.render(c)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1003, in render
vars = dict(*args, **kwargs)
TypeError: 'NoneType' object is not iterable
delete [ system syslog ] failed
Commit failed
[edit]
vyos@vyos#Maybe the syslog configuration is not indeded to be removed but there could be some nicer warning/error about this