Page MenuHomeVyOS Platform

Uncaught errors for functions delete/delete_value in Python module configtree.py
Closed, ResolvedPublicBUG

Description

Two issues in error passing from the bindings libvyosconfig to the Python module configtree.py:
(1) the binding for delete_value does not catch the error of a non-existent path, and hence can not pass that information in a non-zero return value
(2) the Python module functions delete and delete_value do not raise error on non-zero return value of binding, as other functions in that module do.

Details

Difficulty level
Easy (less than an hour)
Version
vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)