Page MenuHomeVyOS Platform

When edit level is not at the top, commit-archive only backups configuration for the current level and not the entire config
Closed, ResolvedPublicBUG

Description

In my mind, backup contents should be irrelevant to current configuration path.
Next two examples should create two identical backups:

example 1:

  1. set interfaces loopback lo description test1
  2. commit

example 2:

  1. edit interfaces loopback lo
  2. set description test2
  3. commit

Now, let's examine contents of the backups. Backup from "example 1" contains full config backup while backup from "example 2" contains only the configuration of the "lo" interface.

Details

Difficulty level
Easy (less than an hour)
Version
1.1.8
Why the issue appeared?
Implementation mistake

Related Objects

Duplicates Merged Here
T934: commit-archive

Event Timeline

syncer edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.1.x.

By default cli-shell-api showCfg is level-aware, and the script indeed did not use the option for supressing it.

The right command to use would be:

cli-shell-api showConfig --show-ignore-edit --show-active-only
dmbaturin renamed this task from configuration backup on commit: only current level backing up to When edit level is not at the top, commit-archive only backups configuration for the current level and not the entire config.Oct 28 2018, 2:30 PM
dmbaturin closed this task as Resolved.
dmbaturin claimed this task.
dmbaturin changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
dmbaturin changed Why the issue appeared? from Will be filled on close to Implementation mistake.
dmbaturin moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.0-rc5) board.