Page MenuHomeVyOS Platform

op-mode: "reset wireguard" verify_cli_exists reads 'intf_name' but parameter is 'interface'
Closed, ResolvedPublicBUG

Description

The verify_cli_exists decorator reads kwargs['intf_name'], but reset_wireguard names the parameter interface.

The decorator looks up a kwarg name that the function does not use, so the per-interface check is skipped.

KeyError traceback and a message containing None for an unconfigured interface.

Details

Version
rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.
c-po claimed this task.
c-po triaged this task as Normal priority.