Page MenuHomeVyOS Platform

rollback check max revision number does not work
Closed, ResolvedPublicBUG

Description

rollback check max revision number does not work

vyos@r4# rollback 150
Traceback (most recent call last):
  File "/usr/bin/config-mgmt", line 33, in <module>
    sys.exit(load_entry_point('vyos==1.3.0', 'console_scripts', 'config-mgmt')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 757, in run
    res, rc = func(**args)
              ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 236, in rollback
    msg = f'Invalid revision number {rev}: must be 0 < rev < {maxrev}'
                                                              ^^^^^^
NameError: name 'maxrev' is not defined
[edit]
vyos@r4#

Details

Version
VyOS 1.5-rolling-202312070905
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.Dec 9 2023, 5:55 PM
Viacheslav claimed this task.
Viacheslav moved this task from Open to Finished on the VyOS 1.5 Circinus board.
Viacheslav moved this task from Open to Finished on the VyOS 1.4 Sagitta board.