Skip to content

Help prevent min-elements YANG violations in server_config_del API - #623

Merged
michalvasko merged 3 commits into
develfrom
fix-callhome-min-elements
Aug 6, 2026
Merged

Help prevent min-elements YANG violations in server_config_del API#623
michalvasko merged 3 commits into
develfrom
fix-callhome-min-elements

Conversation

@Roytak

@Roytak Roytak commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Some server_config_del_* APIs may leave YANG data trees in states that aren't valid. This PR helps prevent such cases by either directly removing the offending nodes (e.g. empty present containers) or by just simply printing a warning message. Refs #614 .

@Roytak
Roytak force-pushed the fix-callhome-min-elements branch from d8643d2 to a2c3d77 Compare August 3, 2026 07:31
Roytak added 3 commits August 6, 2026 08:55
Deleting the last entry of a min-elements list or emptying a mandatory
choice now logs a warning. Presence containers
(listen/call-home) and empty cert-bag/client-authentication containers
are cleaned up automatically to maintain valid YANG data trees.

Resolves #614.
@Roytak
Roytak force-pushed the fix-callhome-min-elements branch from a2c3d77 to b0d5663 Compare August 6, 2026 06:55
@michalvasko
michalvasko merged commit 5b9b524 into devel Aug 6, 2026
11 checks passed
@michalvasko
michalvasko deleted the fix-callhome-min-elements branch August 6, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants