diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-11 22:47:48 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-11 22:47:48 +0100 |
commit | 34721972bad4b7e8e8322a8d7a5ee3c1cb87f213 (patch) | |
tree | 6cedaf9f35d11081496d76ac2cfaedade55e59a3 /lib/northbound.h | |
parent | Merge pull request #15128 from opensourcerouting/fix/bgp_oad_ECOMMUNITY_ORIGI... (diff) | |
download | frr-34721972bad4b7e8e8322a8d7a5ee3c1cb87f213.tar.xz frr-34721972bad4b7e8e8322a8d7a5ee3c1cb87f213.zip |
lib, mgmtd: rename ignore_cbs to ignore_cfg_cbs
Setting this variable to true makes NB ignore only configuration-related
callbacks. CLI-related callbacks are still loaded and executed, so
rename the variable to make it clearer.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r-- | lib/northbound.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/northbound.h b/lib/northbound.h index 37b7055c1..2c238f3bc 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -613,8 +613,8 @@ struct nb_node { #define F_NB_NODE_CONFIG_ONLY 0x01 /* The YANG list doesn't contain key leafs. */ #define F_NB_NODE_KEYLESS_LIST 0x02 -/* Ignore callbacks for this node */ -#define F_NB_NODE_IGNORE_CBS 0x04 +/* Ignore config callbacks for this node */ +#define F_NB_NODE_IGNORE_CFG_CBS 0x04 /* * HACK: old gcc versions (< 5.x) have a bug that prevents C99 flexible arrays @@ -628,10 +628,11 @@ struct frr_yang_module_info { const char *name; /* - * Ignore callbacks for this module. Set this to true to - * load module without any callbacks. + * Ignore configuration callbacks for this module. Set this to true to + * load module with only CLI-related callbacks. This is useful for + * modules loaded in mgmtd. */ - bool ignore_cbs; + bool ignore_cfg_cbs; /* Northbound callbacks. */ const struct { |