diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-07-06 11:32:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 11:32:48 +0200 |
commit | 7650a8d638a85f95e3ff722b06118dbe5722f3e5 (patch) | |
tree | c08c6c9e3dcc1f75586e65a90c519f9c9a45a5dd /pimd/pim_cmd.c | |
parent | Merge pull request #11534 from mjstapp/fix_typesafe_sa (diff) | |
parent | pimd, pim6d: Adding json support for show ipv6 nexthop (diff) | |
download | frr-7650a8d638a85f95e3ff722b06118dbe5722f3e5.tar.xz frr-7650a8d638a85f95e3ff722b06118dbe5722f3e5.zip |
Merge pull request #9307 from SaiGomathiN/sai-nht
pimd: json support for nexthop
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r-- | pimd/pim_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 91cc3aa79..10ea472fb 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -2782,14 +2782,15 @@ DEFPY (show_ip_pim_rpf_vrf_all, DEFPY (show_ip_pim_nexthop, show_ip_pim_nexthop_cmd, - "show ip pim [vrf NAME] nexthop", + "show ip pim [vrf NAME] nexthop [json$json]", SHOW_STR IP_STR PIM_STR VRF_CMD_HELP_STR - "PIM cached nexthop rpf information\n") + "PIM cached nexthop rpf information\n" + JSON_STR) { - return pim_show_nexthop_cmd_helper(vrf, vty); + return pim_show_nexthop_cmd_helper(vrf, vty, !!json); } DEFPY (show_ip_pim_nexthop_lookup, |