Skip to content

sysrepo: report errors from done callbacks to the caller - #1818

Merged
troglobit merged 1 commit into
mainfrom
sysrepo-done-error
Nov 23, 2026
Merged

troglobit merged 1 commit into
mainfrom
sysrepo-done-error

Conversation

@mattiaswal

@mattiaswal mattiaswal commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

confd applies most of a change in SR_EV_DONE. When that fails, e.g., dagger cannot set an address or create an interface, the old patch only failed the event processing in confd. sysrepocfg, the CLI and RESTCONF still got a success, and a startup-config that could not be applied left the device half configured, without users.

The new patch returns the callback error to the caller with the data still written. A failed startup-config now ends in failure-config.

The series is regenerated from the fork, hence the header changes in the other patches.

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

confd applies most of a change in SR_EV_DONE.  When that fails, e.g.,
dagger cannot set an address or create an interface, the old patch
only failed the event processing in confd.  sysrepocfg, the CLI and
RESTCONF still got a success, and a startup-config that could not be
applied left the device half configured, without users.

The new patch returns the callback error to the caller with the data
still written.  A failed startup-config now ends in failure-config.

The series is regenerated from the fork, hence the header changes in
the other patches.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
@mattiaswal
mattiaswal requested a review from troglobit November 23, 2026 15:02
@mattiaswal
mattiaswal marked this pull request as ready for review November 23, 2026 15:07
@troglobit
troglobit merged commit 4b93b1d into main Nov 23, 2026
8 checks passed
@troglobit
troglobit deleted the sysrepo-done-error branch November 23, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants