Page MenuHomeVyOS Platform

show | commands . in conf mode fails when commands are in commit queue
Closed, ResolvedPublicBUG

Description

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
[edit]´´´

when showing one level it fails like this:
´´´vyos@runar-gw# show int tun tun5 | commands
set >local-ip '1.1.1.2'
set description 'kake'
set encapsulation 'gre'
[edit]´´´

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.

Details

Version
1.2.0

Event Timeline

dmbaturin claimed this task.
dmbaturin triaged this task as High priority.
dmbaturin edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
dmbaturin edited a custom field.
dmbaturin edited a custom field.