mirror_frr/tests/topotests/all_protocol_startup/r1
Pooja Jagadeesh Doijode 553c804846 zebra: fix JSON fields for "show ip/ipv6 nht"
1. Renamed "gates" to "nexthops"
2. Displaying afi of the nexthops being dispalyed in place of
   "nexthops" JSON object in the old JSON output
3. Calling show_route_nexthop_helper() and show_nexthop_json_helper()
   instead of print_nh() inorder to keeps the fields in "nexthops"
   JSON object in sync with "nexthops" JSON object of
   "show nexthop-group rib json".

Updated vtysh:
    r1# show ip nht
    192.168.0.2
     resolved via connected
     is directly connected, r1-eth0 (vrf default)
     Client list: static(fd 28)
    192.168.0.4
     resolved via connected
     is directly connected, r1-eth0 (vrf default)
     Client list: static(fd 28)

Updated JSON:
    r1# show ip nht json
    {
      "default":{
        "ipv4":{
          "192.168.0.2":{
            "nhtConnected":false,
            "clientList":[
              {
                "protocol":"static",
                "socket":28,
                "protocolFiltered":"none"
              }
            ],
            "nexthops":[
              {
                "flags":3,
                "fib":true,
                "directlyConnected":true,
                "interfaceIndex":2,
                "interfaceName":"r1-eth0",
                "vrf":"default",
                "active":true
              }
            ],
            "resolvedProtocol":"connected"
          }
        }
      }
    }

Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
2023-01-24 18:15:36 -08:00
..
babeld.conf tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
bgpd.conf tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ip_nht.ref zebra: fix JSON fields for "show ip/ipv6 nht" 2023-01-24 18:15:36 -08:00
ipv4_routes.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ipv6_nht.ref zebra: fix JSON fields for "show ip/ipv6 nht" 2023-01-24 18:15:36 -08:00
ipv6_routes.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
isisd.conf tests: Remove debugs from topotests 2021-11-07 07:45:27 -05:00
ldpd.conf tests: Remove debugs from topotests 2021-11-07 07:45:27 -05:00
nhrpd.conf tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ospf6d.conf tests: Speedup test_all_protocol_startup.py by 55 seconds 2022-11-04 13:34:27 -04:00
ospf6d.conf-pre-v4 tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ospfd.conf tests: Speedup test_all_protocol_startup.py by 55 seconds 2022-11-04 13:34:27 -04:00
pbrd.conf tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
rip_status.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ripd.conf tests: Remove debugs from topotests 2021-11-07 07:45:27 -05:00
ripng_status.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
ripngd.conf tests: Remove debugs from topotests 2021-11-07 07:45:27 -05:00
show_bgp_ipv4-post4.1.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv4-post5.0.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv4-post6.1.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv4.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv6_post6.1.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv6_summary.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_bgp_ipv6-post4.1.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_bgp_ipv6.ref bgpd: fixed misaligned columns in BGP routes table 2022-10-25 10:45:35 -04:00
show_ip_bgp_summary.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_ip_ospf_interface.ref tests: Speedup test_all_protocol_startup.py by 55 seconds 2022-11-04 13:34:27 -04:00
show_ipv6_ospf6_interface tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_ipv6_ospf6_interface.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_isis_interface_detail.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_mpls_ldp_interface.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
show_route_map.ref tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00
zebra.conf tests: Unify directory naming for topotests 2021-05-11 14:14:26 +03:00