Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgmtd: validate candidate yang tree before creating a config diff #14914

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

idryzhov
Copy link
Contributor

The candidate yang tree should be validated before nb_config_diff is called. nb_config_diff ignores all prohibited operations and can provide an empty change list because of this. For example, if a user deletes a mandatory node from the candidate datastore and tries to make a commit, they'll receive the "No changes found to be committed!" error, because such a change is ignored by nb_config_diff. Instead, mgmtd should tell the user that their candidate datastore is not valid and can't be commited.

The candidate yang tree should be validated before `nb_config_diff` is
called. `nb_config_diff` ignores all prohibited operations and can
provide an empty change list because of this. For example, if a user
deletes a mandatory node from the candidate datastore and tries to make
a commit, they'll receive the "No changes found to be committed!" error,
because such a change is ignored by `nb_config_diff`. Instead, mgmtd
should tell the user that their candidate datastore is not valid and
can't be commited.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
@frrbot frrbot bot added the mgmt FRR Management Infra label Nov 30, 2023
@ton31337 ton31337 merged commit 05567ba into FRRouting:master Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master mgmt FRR Management Infra size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants