diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-04-23 10:05:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 10:05:06 +0200 |
commit | 5e20fb81765c87525ec3ca75d56986a63ceddaf4 (patch) | |
tree | 07f9edda722dab13aac23a61848926bfc88ec40a /pimd | |
parent | Merge pull request #6275 from donaldsharp/fix_frr (diff) | |
parent | pimd: Added a new field "rpAddress" in "show ip pim rp-info json (diff) | |
download | frr-5e20fb81765c87525ec3ca75d56986a63ceddaf4.tar.xz frr-5e20fb81765c87525ec3ca75d56986a63ceddaf4.zip |
Merge pull request #6025 from patrasar/rp-info-igmp-group-json-fix
pimd: Modified rp-info json o/p
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_rp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index ef5f47822..d9e93f95f 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -1289,6 +1289,10 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj) json_rp_rows = json_object_new_array(); json_row = json_object_new_object(); + json_object_string_add( + json_row, "rpAddress", + inet_ntoa(rp_info->rp.rpf_addr.u + .prefix4)); if (rp_info->rp.source_nexthop.interface) json_object_string_add( json_row, "outboundInterface", |