diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-27 02:15:56 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:40 +0200 |
| commit | 010bd3e5702d1ed52fcf19d950a558b74897c67b (patch) | |
| tree | 80272738dac2cfbbcd626bfdc74287ba9616a922 /zebra/zebra_nb_config.c | |
| parent | cc619176fe8f06d1bf85e5f0225acf08240c2698 (diff) | |
zebra: convert route-map delay-timer command to NB
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/zebra_nb_config.c')
| -rw-r--r-- | zebra/zebra_nb_config.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index 3ae8ab683c..0216d39170 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -291,6 +291,21 @@ int zebra_ptm_enable_modify(struct nb_cb_modify_args *args) #endif /* + * XPath: /frr-zebra:zebra/route-map-delay + */ +int zebra_route_map_delay_modify(struct nb_cb_modify_args *args) +{ + uint32_t delay = yang_dnode_get_uint32(args->dnode, NULL); + + if (args->event != NB_EV_APPLY) + return NB_OK; + + zebra_route_map_set_delay_timer(delay); + + return NB_OK; +} + +/* * XPath: /frr-zebra:zebra/debugs/debug-events */ int zebra_debugs_debug_events_modify(struct nb_cb_modify_args *args) |
