diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-22 22:21:04 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:39 +0200 | 
| commit | 4a18818b02c55c6a5313b5d49c4447daef3a3816 (patch) | |
| tree | 11abae62952fa5a9ac7aedf125bb472e1536a5f0 /zebra/zebra_nb_config.c | |
| parent | 7c6e41ecffe63cb5d17b475c874faf788e4138a3 (diff) | |
zebra: convert interface evpn mh bypass 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 | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index e6eeb60b21..68f646098d 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -2420,6 +2420,24 @@ int lib_interface_zebra_evpn_mh_df_preference_modify(  }  /* + * XPath: /frr-interface:lib/interface/frr-zebra:zebra/evpn-mh/bypass + */ +int lib_interface_zebra_evpn_mh_bypass_modify(struct nb_cb_modify_args *args) +{ +	struct interface *ifp; +	bool bypass; + +	if (args->event != NB_EV_APPLY) +		return NB_OK; + +	ifp = nb_running_get_entry(args->dnode, NULL, true); +	bypass = yang_dnode_get_bool(args->dnode, NULL); +	zebra_evpn_es_bypass_cfg_update(ifp->info, bypass); + +	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)  | 
