diff options
| author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2023-01-06 19:54:49 -0800 |
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2023-01-09 15:36:41 -0800 |
| commit | 826beeffe63acda4628f0f7d0bdd2cf280e717a1 (patch) | |
| tree | 97b2fe275463a635ec95a024caab66806065bd11 | |
| parent | 61615e4dfd377dd40265591f37531079e48863d1 (diff) | |
zebra: Add missing json attributes for show evpn
Missing json attributes added for show evpn json
Before:
```
tor-1# show evpn json
{
"advertiseGatewayMacip":"No",
"numVnis":26,
"numL2Vnis":21,
"numL3Vnis":5,
"isDuplicateAddrDetection":true,
"maxMoves":5,
"detectionTime":180,
"detectionFreezeTime":0,
"macHoldtime":1080,
"neighHoldtime":1080,
"startupDelay":180,
"startupDelayTimer":"--:--:--",
"uplinkConfigCount":0,
"uplinkActiveCount":0
}
tor-1#
```
After:
```
tor-1# show evpn json
{
"advertiseGatewayMacip":"No",
"advertiseSviMacip":"No",
"advertiseSviMac":"No",
"numVnis":26,
"numL2Vnis":21,
"numL3Vnis":5,
"isDuplicateAddrDetection":true,
"maxMoves":5,
"detectionTime":180,
"detectionFreezeTime":0,
"macHoldtime":1080,
"neighHoldtime":1080,
"startupDelay":180,
"startupDelayTimer":"--:--:--",
"uplinkConfigCount":0,
"uplinkActiveCount":0
}
tor-1#
```
Ticket:#3323248
Issue:3323248
Testing: UT done
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
| -rw-r--r-- | zebra/zebra_vxlan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index f1c7debe11..12fec158b0 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -3511,6 +3511,12 @@ void zebra_vxlan_print_evpn(struct vty *vty, bool uj) json = json_object_new_object(); json_object_string_add(json, "advertiseGatewayMacip", zvrf->advertise_gw_macip ? "Yes" : "No"); + json_object_string_add(json, "advertiseSviMacip", + zvrf->advertise_svi_macip ? "Yes" + : "No"); + json_object_string_add(json, "advertiseSviMac", + zebra_evpn_mh_do_adv_svi_mac() ? "Yes" + : "No"); json_object_int_add(json, "numVnis", num_vnis); json_object_int_add(json, "numL2Vnis", num_l2vnis); json_object_int_add(json, "numL3Vnis", num_l3vnis); |
