diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-02-02 11:51:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-02 11:51:03 -0500 |
| commit | 22b79197bb32cfbe60ce76f63dc7ce93920328a3 (patch) | |
| tree | d8d261a6283512de3d8ff29542a83c9e0f6958d2 /lib/routing_nb_config.c | |
| parent | 4650d5aa5ae6408e91b19e299eef2f80ee0332ab (diff) | |
| parent | cb781f60972aca7e0fdd18884814a9ef0403a67c (diff) | |
Merge pull request #15279 from idryzhov/staticd-fixes
several fixes for staticd configuration
Diffstat (limited to 'lib/routing_nb_config.c')
| -rw-r--r-- | lib/routing_nb_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/routing_nb_config.c b/lib/routing_nb_config.c index 2b20e6c14b..d532279a22 100644 --- a/lib/routing_nb_config.c +++ b/lib/routing_nb_config.c @@ -14,6 +14,8 @@ DEFINE_HOOK(routing_conf_event, (struct nb_cb_create_args *args), (args)); +DEFINE_HOOK(routing_create, (struct nb_cb_create_args *args), (args)); +DEFINE_KOOH(routing_destroy, (struct nb_cb_destroy_args *args), (args)); /* * XPath: /frr-routing:routing/control-plane-protocols/control-plane-protocol @@ -49,6 +51,7 @@ int routing_control_plane_protocols_control_plane_protocol_create( assert(vrf); nb_running_set_entry(args->dnode, vrf); } + hook_call(routing_create, args); break; }; @@ -61,6 +64,8 @@ int routing_control_plane_protocols_control_plane_protocol_destroy( if (args->event != NB_EV_APPLY) return NB_OK; + hook_call(routing_destroy, args); + /* * If dependency on VRF module is registered, then VRF * pointer was stored and must be cleared. |
