diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-23 17:19:41 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:39 +0200 | 
| commit | 224429da6f8e90e9999b9a7fabebabca72a63015 (patch) | |
| tree | 4e303e8fb4fb68a90f3e5732c77509a5d4d83d37 /zebra/zebra_nb_config.c | |
| parent | 966fcb6c0fc714ba84c2fd63c536dd6d3aba2be6 (diff) | |
zebra: convert interface ipv6 nd ra-retrans-interval 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 | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index 91ed6f5e1e..3c33314788 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -2597,6 +2597,28 @@ int lib_interface_zebra_ipv6_router_advertisements_reachable_time_modify(  }  /* + * XPath: /frr-interface:lib/interface/frr-zebra:zebra/ipv6-router-advertisements/retrans-timer + */ +int lib_interface_zebra_ipv6_router_advertisements_retrans_timer_modify( +	struct nb_cb_modify_args *args) +{ +	struct interface *ifp; +	struct zebra_if *zif; +	uint32_t timer; + +	if (args->event != NB_EV_APPLY) +		return NB_OK; + +	ifp = nb_running_get_entry(args->dnode, NULL, true); +	zif = ifp->info; +	timer = yang_dnode_get_uint32(args->dnode, NULL); + +	zif->rtadv.AdvRetransTimer = timer; + +	return NB_OK; +} + +/*   * XPath: /frr-interface:lib/interface/frr-zebra:zebra/ipv6-router-advertisements/default-lifetime   */  int lib_interface_zebra_ipv6_router_advertisements_default_lifetime_modify(  | 
