mirror_frr/doc/user
Sindhu Parvathi Gopinathan 780563cc8b zebra: json support for show ip nht
show ip/ipv6 nht vrf <all | name> json support added.

Commands enhanced with JSON:
----------------------------
show ip nht json
show ip nht <addr> json
show ipv6 nht json
show ipv6 nht <addr> json
show ip nht vrf <name> json
show ip nht vrf all json
show ipv6 nht vrf <name> json
show ipv6 nht vrf all json
show ip nht vrf default <addr> json
show ipv6 nht vrf default <addr> json

Sample JSON output:
-------------------

tor-1# show ip nht vrf default json
{
  "default":{
    "nexthops":{
      "27.0.0.5":{
        "nhtConnected":false,
        "clientList":[
          {
            "protocol":"bgp",
            "socket":70,
            "protocolFiltered":"none"
          }
        ],
        "gates":[
          {
            "ip":"fe80::202:ff:fe00:2b",
            "interface":"uplink_1"
          },
          {
            "ip":"fe80::202:ff:fe00:35",
            "interface":"uplink_2"
          }
        ],
        "resolvedProtocol":"bgp"
      },
      "27.0.0.6":{
        "nhtConnected":false,
        "clientList":[
          {
            "protocol":"bgp",
            "socket":70,
            "protocolFiltered":"none"
          }
        ],
        "gates":[
          {
            "ip":"fe80::202:ff:fe00:2b",
            "interface":"uplink_1"
          },
          {
            "ip":"fe80::202:ff:fe00:35",
            "interface":"uplink_2"
          }
        ],
        "resolvedProtocol":"bgp"
      }
    }
  }
}

tor-1# show ipv6 nht vrf default json
{
  "default": {
    "nexthops": {
      "fe80::202:ff:fe00:25": {
        "nhtConnected": true,
        "clientList": [
          {
            "protocol": "bgp",
            "socket": 45,
            "protocolFiltered": "none"
          }
        ],
        "gates": [
          {
            "interface": "swp1",
            "directlyConnected": true
          }
        ],
        "resolvedProtocol": "connected"
      },
      "fe80::202:ff:fe00:2b": {
        "nhtConnected": true,
        "clientList": [
          {
            "protocol": "bgp",
            "socket": 45,
            "protocolFiltered": "none"
          }
        ],
        "gates": [
          {
            "interface": "swp1",
            "directlyConnected": true
          }
        ],
        "resolvedProtocol": "connected"
      }
    }
  }
}

tor-1# show ipv6 nht vrf all json
{
  "default": {
    "nexthops": {
      "fe80::202:ff:fe00:25": {
        "nhtConnected": true,
        "clientList": [
          {
            "protocol": "bgp",
            "socket": 45,
            "protocolFiltered": "none"
          }
        ],
        "gates": [
          {
            "interface": "swp1",
            "directlyConnected": true
          }
        ],
        "resolvedProtocol": "connected"
      },
      "fe80::202:ff:fe00:2b": {
        "nhtConnected": true,
        "clientList": [
          {
            "protocol": "bgp",
            "socket": 45,
            "protocolFiltered": "none"
          }
        ],
        "gates": [
          {
            "interface": "swp1",
            "directlyConnected": true
          }
        ],
        "resolvedProtocol": "connected"
      }
    }
  },
  "mgmt": {
    "nexthops": {}
  },
  "sym_1": {
    "nexthops": {}
  }
}

Ticket:#3229013
Issue:3229013

Testing Done: Unit test completed.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
Signed-off-by: Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
2022-11-28 15:38:09 -08:00
..
_static doc: orange FRR theme 2019-02-18 14:39:13 +01:00
images doc: Augmented pathd documentation. 2021-10-04 18:56:47 +02:00
.gitignore doc: fix distclean 2018-05-18 19:35:24 +00:00
babeld.rst doc: Minor grammar correction 2021-12-23 07:32:33 +10:00
basic.rst doc: Add allow-reserved-ranges global command 2022-07-01 23:23:14 +03:00
bfd.rst Doc: Update documentation for BFD Echo. 2022-08-02 10:09:11 -04:00
bgp.rst Merge pull request #12336 from cscarpitta/fix/increase-sid-index-limit 2022-11-21 10:05:44 +02:00
bmp.rst bmp: add L3VPN support 2022-07-13 17:28:37 +02:00
bugs.rst doc: fix dupe bug-reports label, index entry 2021-02-23 15:49:19 -05:00
conf.py doc: Remove language = none as that sphinx no longer needs this line 2022-10-27 15:59:57 -04:00
eigrpd.rst doc: remove redundant index directives 2021-05-18 15:29:59 +03:00
extlog.rst doc: add new RFC5424 & journald logging targets 2022-01-17 00:39:00 +01:00
fabricd.rst *: remove *.conf.sample files 2021-04-09 13:14:30 -04:00
filter.rst lib: add "json" option to "show ip[v6] prefix-list" 2021-08-02 17:19:45 -03:00
flowspec.rst doc: remove 'no' form of commands 2021-02-22 14:38:21 -05:00
frr-reload.rst doc: add docs for frr-reload.py options 2020-05-26 19:14:12 +02:00
glossary.rst doc: fixup glossary for html build 2018-02-02 15:24:57 -05:00
grpc.rst doc: initial documentation for gRPC 2020-08-10 16:39:06 -03:00
index.rst doc: Add nexthop_groups documentation 2022-11-04 13:34:27 -04:00
installation.rst lib: Add PCRE2 support 2022-11-07 21:23:53 +02:00
ipv6.rst doc: add doc for show ipv6 nd ra-interfaces 2021-06-08 15:17:22 -04:00
isisd.rst isisd: Add expected behavior with set-overload-bit 2022-10-12 10:52:27 -07:00
kernel.rst doc: remove obsolete Netlink discussion, fix svi cmd doc 2021-04-30 18:10:56 -05:00
ldpd.rst doc: document ldpd's "ttl-security" commands 2022-06-15 14:12:35 -03:00
Makefile build: non-recursive doc + parallel sphinx 2018-08-30 08:06:44 +02:00
nexthop_groups.rst doc: Add nexthop_groups documentation 2022-11-04 13:34:27 -04:00
nhrpd.rst doc: remove redundant index directives 2021-05-18 15:29:59 +03:00
ospf6d.rst doc: Fix spelling mistakes 2022-02-14 12:51:22 -05:00
ospf_fundamentals.rst doc: replace "passive-interface IFNAME" with "ip ospf passive" 2021-06-05 18:25:01 +03:00
ospfd.rst doc: fix ospf's max-metric command 2022-10-31 04:08:34 -04:00
overview.rst doc: Update supported BGP RFC list 2022-09-25 11:58:10 +03:00
packet-dumps.rst doc: reorganize into multiple toctrees 2018-06-08 07:54:25 +00:00
pathd.rst pathd: add 'debug pathd policy' command 2022-11-14 17:42:44 +01:00
pbr.rst doc: Add nexthop_groups documentation 2022-11-04 13:34:27 -04:00
pim.rst pim6d: Update BSM cli/show/debug commands in pimv6.rst 2022-10-20 01:07:48 -07:00
pimv6.rst pim6d: Update BSM cli/show/debug commands in pimv6.rst 2022-10-20 01:07:48 -07:00
ripd.rst doc/user/ripd: clarify unicast behaviour 2022-08-05 17:11:43 +10:00
ripngd.rst doc: Fix the rip and ripng distribute-list ... commands 2021-05-04 16:23:37 -04:00
routemap.rst doc: Add documentation for AIGP 2022-10-26 11:26:56 +03:00
routeserver.rst doc: replace the import/export keywords for in/out 2022-06-14 15:39:48 +02:00
rpki.rst bgpd: Handle Origin Validation State extended community via route-map match 2022-09-04 21:54:47 +03:00
scripting.rst *: Fix spelling of overriden 2022-04-19 08:27:02 -04:00
setup.rst doc: Adding a description for a new option 2022-11-23 10:19:33 +01:00
sharp.rst doc: add docs for End.DT46 seg6local route 2022-10-18 16:08:24 +02:00
snmp.rst doc: remove 'no' form of commands 2021-02-22 14:38:21 -05:00
snmptrap.rst bgpd: Adjust symbolic names for cease notifications according to rfc4486 2022-01-06 10:07:41 +02:00
static.rst doc: Add missing static route options and clarify usage 2021-10-12 17:28:11 +02:00
subdir.am doc: Add nexthop_groups documentation 2022-11-04 13:34:27 -04:00
Useful_Sysctl_Settings.md doc: update VRF support description 2021-05-31 22:12:55 +03:00
vnc.rst doc: remove 'no' form of commands 2021-02-22 14:38:21 -05:00
vrrp.rst doc: remove 'no' form of commands 2021-02-22 14:38:21 -05:00
vtysh.rst doc: Align docs to recommend integrated config 2022-09-23 15:16:40 -04:00
watchfrr.rst doc: remove 'no' form of commands 2021-02-22 14:38:21 -05:00
wecmp_linkbw.rst doc: automatically generate index entries for cli 2021-02-22 14:38:21 -05:00
zebra.rst zebra: json support for show ip nht 2022-11-28 15:38:09 -08:00