Page MenuHomePhabricator

Add "effective" observers and inSession to the vyos.config library
Closed, ResolvedPublic

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
dmbaturin created this object with visibility "Public (No Login Required)".
dmbaturin added a subscriber: Tania.
dmbaturin closed this task as Resolved.May 24 2018, 4:45 PM