Skip to content

CLI: configure starts from a stale candidate #1801

Open

Description

@troglobit

Current Behavior

configure in the CLI does not start from running-config. The
candidate datastore is shared and keeps uncommitted changes after the
session that made them is gone. The next session gets them without
notice, and its leave also reverts anything changed in running in
the meantime.

It happens after:

  • a session that ends without leave or abort, e.g. a lost
    connection, or exit after a rejected leave
  • a RESTCONF client that writes to the candidate datastore, which it
    has no way to discard. The test framework does this.

Expected Behavior

configure starts from running-config, and uncommitted changes of one
session are not seen, or committed, by another.

Steps To Reproduce

admin@example:/> configure
admin@example:/config/> set interface e2 qos ingress default-priority 2

Drop the connection, log in again:

admin@example:/> configure
admin@example:/config/> show interface e2
type ethernet;
qos {
  ingress {
    default-priority 2;
  }
}

Additional information

Seen with v26.10.0-289-geec39e9b9, on x86_64 and LAN969x.

Proposed fix: use the private candidate support recently added to
sysrepo, so every session edits its own copy of running.

Workaround: reset after configure.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. mattiaswal commented on Nov 19, 2026

    @mattiaswal
    Contributor

    I have had a little education session with claude, private-candidate seems to be something that client/server needs both to support.

  3. added theissue type on Nov 26, 2026
  4. removed
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions