Merge pull request #13250 from chiragshah6/fdev1

bgpd:add local_es_df_preference into l2vpn-evpn es json output
This commit is contained in:
Donatas Abraitis 2023-04-11 20:05:34 +03:00 committed by GitHub
commit a070fa00ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2609,6 +2609,9 @@ static void bgp_evpn_es_show_entry_detail(struct vty *vty,
listcount(es->macip_global_path_list));
json_object_int_add(json, "inconsistentVniVtepCount",
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)) {
json_vteps = json_object_new_array();
for (ALL_LIST_ELEMENTS_RO(es->es_vtep_list, node,