Merge pull request #13080 from chiragshah6/fdev2

zebra: add evpn isDetectionFreeze to json output
This commit is contained in:
Donatas Abraitis 2023-03-22 09:23:10 +02:00 committed by GitHub
commit 8179b7e188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3819,6 +3819,8 @@ void zebra_vxlan_print_evpn(struct vty *vty, bool uj)
json_object_int_add(json, "detectionTime", zvrf->dad_time); json_object_int_add(json, "detectionTime", zvrf->dad_time);
json_object_int_add(json, "detectionFreezeTime", json_object_int_add(json, "detectionFreezeTime",
zvrf->dad_freeze_time); zvrf->dad_freeze_time);
json_object_boolean_add(json, "isDetectionFreeze",
zvrf->dad_freeze);
zebra_evpn_mh_json(json); zebra_evpn_mh_json(json);
} else { } else {
vty_out(vty, "L2 VNIs: %u\n", num_l2vnis); vty_out(vty, "L2 VNIs: %u\n", num_l2vnis);