When running show | commands in config mode it fails when config changes are in commit queue.
when showing multiple levels it fails with ´´´
Traceback (most recent call last):
File "/usr/libexec/vyos/commands-pipe.py", line 25, in <module> config = ConfigTree(config_string) File "/usr/lib/python3/dist-packages/vyos/configtree.py", line 153, in __init__ raise ValueError("Parse error")
ValueError: Parse error
when showing one level it fails like this:
´´´vyos@runar-gw# show int tun tun5 | commands
set >local-ip '184.108.40.206'
set description 'kake'
set encapsulation 'gre'
it seems like it fails to parse the diff completely.
the script needs to check for diff's and fail with a message when the user has changed configuration or to try to follow the diff.