Add "effective" observers and inSession to the vyos.config library
Open, NormalPublic

Description

The functions we have in that library so far are only usable in conf mode. In op mode, they do not work (and in fact cause cli-shell-api to segfault, but it's a different story). This makes the library unusable for op mode scripts.

We need to add the following cli-shell-api functions to it:

  • inSession
  • returnEffectiveValue
  • returnEffectiveValues
  • listEffectiveNodes
  • existsEffective

in_session should take no arguments and return a bool (cli-shell-api inSession exists with 0 if true and >0 otherwise).
The rest should behave as their non-effective counterparts.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
This request is:
Service Request
dmbaturin created this object with visibility "Public (No Login Required)".