Page MenuHomeVyOS Platform

Config edit level affecting the show_config() function
Open, Requires assessmentPublicBUG

Description

There are three places, where used show_config() function. This function should return the config at a given path.
But commands generated by this function looks like:

/bin/cli-shell-api showConfig --show-active-only path
/bin/cli-shell-api showConfig --show-working-only path

Therefore, it works properly only outside configuration sessions or when the edit level is root. In other cases, it uses the current edit level as root, so the output is not as expected.
We should use the --show-ignore-edit option with this command to fix this.

Details

Difficulty level
Normal (likely a few hours)
Version
1.3-rolling-202003180217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)