diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-22 21:52:09 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:39 +0200 | 
| commit | 7c6e41ecffe63cb5d17b475c874faf788e4138a3 (patch) | |
| tree | 52a3cddb5043a10fcf00193ef8d97d3b98417c94 /zebra/zebra_nb_config.c | |
| parent | a6db1c14a434a2f2e389de2ef871ed4a3d10d30a (diff) | |
zebra: convert interface evpn mh es-df-pref 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 | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index 535b60f7f0..e6eeb60b21 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -2401,6 +2401,25 @@ int lib_interface_zebra_evpn_mh_type_3_local_discriminator_destroy(  }  /* + * XPath: /frr-interface:lib/interface/frr-zebra:zebra/evpn-mh/df-preference + */ +int lib_interface_zebra_evpn_mh_df_preference_modify( +	struct nb_cb_modify_args *args) +{ +	struct interface *ifp; +	uint16_t df_pref; + +	if (args->event != NB_EV_APPLY) +		return NB_OK; + +	ifp = nb_running_get_entry(args->dnode, NULL, true); +	df_pref = yang_dnode_get_uint16(args->dnode, NULL); +	zebra_evpn_es_df_pref_update(ifp->info, df_pref); + +	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)  | 
