mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 12:39:21 +00:00
Merge pull request #13250 from chiragshah6/fdev1
bgpd:add local_es_df_preference into l2vpn-evpn es json output
This commit is contained in:
commit
a070fa00ce
@ -2609,6 +2609,9 @@ static void bgp_evpn_es_show_entry_detail(struct vty *vty,
|
|||||||
listcount(es->macip_global_path_list));
|
listcount(es->macip_global_path_list));
|
||||||
json_object_int_add(json, "inconsistentVniVtepCount",
|
json_object_int_add(json, "inconsistentVniVtepCount",
|
||||||
es->incons_evi_vtep_cnt);
|
es->incons_evi_vtep_cnt);
|
||||||
|
if (es->flags & BGP_EVPNES_LOCAL)
|
||||||
|
json_object_int_add(json, "localEsDfPreference",
|
||||||
|
es->df_pref);
|
||||||
if (listcount(es->es_vtep_list)) {
|
if (listcount(es->es_vtep_list)) {
|
||||||
json_vteps = json_object_new_array();
|
json_vteps = json_object_new_array();
|
||||||
for (ALL_LIST_ELEMENTS_RO(es->es_vtep_list, node,
|
for (ALL_LIST_ELEMENTS_RO(es->es_vtep_list, node,
|
||||||
|
Loading…
Reference in New Issue
Block a user