Page MenuHomeVyOS Platform

get_config_dict: Use utility function for non-empty path argument
Closed, ResolvedPublicFEATURE REQUEST

Description

Currently, get_config_dict provides the sub-config at 'path', by passing the path argument to show_config. This results in

  1. the behaviour cited in T2662 through the interaction of the backend and configtree
  2. an additional dependency on, and call to, the vyatta backend
  3. ceding control of the result to the backend

As an alternative, it is suggested to add a utility function 'get_sub_dict', and apply that to the full config_dict obtained from show_config, for a non-empty path.

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

jestabro changed the task status from Open to Needs testing.Jul 1 2020, 6:24 PM
jestabro triaged this task as Normal priority.
jestabro created this task.
jestabro created this object in space S1 VyOS Public.
jestabro updated the task description. (Show Details)Jul 1 2020, 6:39 PM
jestabro moved this task from Need Triage to In Progress on the VyOS 1.3 Equuleus board.
pasik added a subscriber: pasik.Jul 2 2020, 12:26 PM