mirror_frr/mgmtd
Igor Ryzhov c81776c8e9 mgmtd: validate candidate yang tree before creating a config diff
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>
2023-11-30 03:10:09 +02:00
..
.gitignore mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
Makefile mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
mgmt_be_adapter.c mgmtd, lib: remove batch ids from all messages 2023-11-12 03:20:54 +02:00
mgmt_be_adapter.h Merge pull request #14815 from idryzhov/lib-mgmt-deps 2023-11-22 10:51:40 +01:00
mgmt_ds.c mgmt: delete candidate scratch buffer 2023-10-06 21:18:33 +03:00
mgmt_ds.h lib, mgmtd: move common header to lib 2023-11-17 11:27:03 +01:00
mgmt_fe_adapter.c lib: mgmtd: only clear pending for the in-progress command 2023-07-14 18:24:30 -04:00
mgmt_fe_adapter.h lib, mgmtd: move common header to lib 2023-11-17 11:27:03 +01:00
mgmt_history.c mgmtd: KISS the locking code 2023-06-19 00:13:28 -04:00
mgmt_history.h mgmtd: assert an assertion for coverity 2023-06-06 15:12:58 -04:00
mgmt_main.c mgmtd, staticd: output staticd configuration from mgmtd 2023-11-21 13:28:40 +02:00
mgmt_memory.c mgmtd: cleanup BE xpath subscription and matching code 2023-05-30 02:10:20 -04:00
mgmt_memory.h mgmtd: cleanup BE xpath subscription and matching code 2023-05-30 02:10:20 -04:00
mgmt_txn.c mgmtd: validate candidate yang tree before creating a config diff 2023-11-30 03:10:09 +02:00
mgmt_txn.h Merge pull request #14815 from idryzhov/lib-mgmt-deps 2023-11-22 10:51:40 +01:00
mgmt_vty.c mgmtd: add node for writing configuration 2023-11-21 13:13:05 +02:00
mgmt.c mgmtd: clarify the startup dance in comments 2023-10-12 14:38:39 -04:00
mgmt.h lib, mgmtd: remove function duplication 2023-11-17 11:27:03 +01:00
subdir.am lib, mgmtd: move common header to lib 2023-11-17 11:27:03 +01:00