summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-07 20:00:33 +0000
committerChristian Breunig <christian@breunig.cc>2026-09-07 20:00:33 +0000
commitd1f437e21809ba673cd7c4ef0126a121b29b5b5c (patch)
treedcc26c43b973c4dabbac7b3c30538d98d28227b3 /src/migration-scripts
parentb0fb31d32f05691ed568b29a71d7963cb28aa053 (diff)
downloadvyos-1x-d1f437e21809ba673cd7c4ef0126a121b29b5b5c.tar.gz
vyos-1x-d1f437e21809ba673cd7c4ef0126a121b29b5b5c.zip
configquery: T8409: resolve op-mode config paths independent of edit level
op_mode_config_dict() rewrote the absolute path passed in by the caller into one relative to VYATTA_EDIT_LEVEL. list_strip() returns an empty list as soon as a path component mismatches, so from e.g. [edit qos policy] the path "qos interface eth1" became the current edit level itself and cli-shell-api dumped an unrelated subtree: [edit qos policy] vyos@vyos# run show qos shaper interface eth1 WARNING: Specified configuration path is not valid QoS is not applied to eth1! Relative lookups are unreliable even when the edit level is a proper prefix of the path, as cli-shell-api validates the path against VYATTA_TEMPLATE_LEVEL and rejects a relative tag node value. Keep the absolute path and reset both level variables for the child process instead.
Diffstat (limited to 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions