diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-23 18:29:36 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:39 +0200 | 
| commit | f36cdd4a008f9e4b17e2131df706e3cc2a0e7102 (patch) | |
| tree | d66ac8271a76d686d4c98ccdbb4e95a94658c911 /zebra/zebra_nb_config.c | |
| parent | 509eb9c29775ed8c9654ec21edb72d7ecebc3488 (diff) | |
zebra: convert interface ipv6 nd adv-interval-option 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 | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index edd2e68881..07cdf7f239 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -2744,6 +2744,29 @@ int lib_interface_zebra_ipv6_router_advertisements_fast_retransmit_modify(  }  /* + * XPath: /frr-interface:lib/interface/frr-zebra:zebra/ipv6-router-advertisements/advertisement-interval-option + */ +int lib_interface_zebra_ipv6_router_advertisements_advertisement_interval_option_modify( +	struct nb_cb_modify_args *args) +{ +	struct interface *ifp; +	struct zebra_if *zif; +	bool option; + +	if (args->event != NB_EV_APPLY) +		return NB_OK; + +	ifp = nb_running_get_entry(args->dnode, NULL, true); +	zif = ifp->info; + +	option = yang_dnode_get_bool(args->dnode, NULL); + +	zif->rtadv.AdvIntervalOption = !!option; + +	return NB_OK; +} + +/*   * XPath: /frr-vrf:lib/vrf/frr-zebra:zebra/l3vni-id   */  int lib_vrf_zebra_l3vni_id_modify(struct nb_cb_modify_args *args)  | 
