mirror_frr/ospfd
Chirag Shah cef262c34a ospfd: fix show ospf neigh json for multile nbrs
Same neighbor learned from multiple ospf interfaces
(all) were not displayed in json, only last was displayed.
Created list within dictionary using neighbor-id as key.
lookup neigbhor-id in json obejct prior to creating new list.

spine-2# show ip ospf neighbor

Neighbor ID   Pri State     Dead Time Address     Interface
0.0.1.16        1 Full/DR   36.754s   8.0.3.15    swp1:8.0.3.16
0.0.1.16        1 Full/DR   30.903s   7.0.3.15    swp2:7.0.3.16

spine-2# show ip ospf neighbor json
{
   "0.0.1.16":[
   {
      "priority":1,
         "state":"Full\/DR",
         "deadTimeMsecs":35114,
         "address":"8.0.3.15",
         "ifaceName":"swp1:8.0.3.16",
         "retransmitCounter":0,
         "requestCounter":0,
         "dbSummaryCounter":0
   },
   {
      "priority":1,
      "state":"Full\/DR",
      "deadTimeMsecs":39264,
      "address":"7.0.3.15",
      "ifaceName":"swp2:7.0.3.16",
      "retransmitCounter":0,
      "requestCounter":0,
      "dbSummaryCounter":0
   }
   ]
}

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2017-10-30 19:31:28 -07:00
..
.gitignore ospfd: OSPFv2 VRF Changes II 2017-10-03 09:15:20 -07:00
ChangeLog.opaque.txt Initial revision 2003-02-03 16:31:16 +00:00
Makefile build: non-recursive ospf* 2017-08-04 11:09:50 +02:00
ospf_abr.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_abr.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_api.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
ospf_api.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_apiserver.c ospfd: fix clang warning 2017-10-08 23:19:38 +02:00
ospf_apiserver.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_asbr.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_asbr.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_ase.c *: Convert list_free usage to list_delete 2017-10-05 10:53:17 -04:00
ospf_ase.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_bfd.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_bfd.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_dump_api.c *: reindent 2017-07-17 14:04:07 +02:00
ospf_dump_api.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_dump.c ospfd: fix clang warning 2017-10-08 23:39:34 +02:00
ospf_dump.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_flood.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_flood.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_ia.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
ospf_ia.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_interface.c ospfd: reset ospf interface protocol stats 2017-10-23 14:48:22 -07:00
ospf_interface.h ospfd: remember area-id format for ifaces 2017-08-16 11:18:11 -04:00
ospf_ism.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
ospf_ism.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_lsa.c ospfd: fix coverity warnings - security best practices violations 2017-10-24 19:30:30 -02:00
ospf_lsa.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_lsdb.c *: reindent 2017-07-17 14:04:07 +02:00
ospf_lsdb.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_main.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_memory.c ospf6d: adjust changes per PR 870 review 2017-07-31 14:34:06 -07:00
ospf_memory.h ospf6d: adjust changes per PR 870 review 2017-07-31 14:34:06 -07:00
ospf_neighbor.c ospfd: Fix conflict router-id, memory leaks 2017-08-10 15:12:19 -07:00
ospf_neighbor.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_network.c ospfd: add vrf option to operational command 2017-10-28 16:09:44 -07:00
ospf_network.h ospfd: Bind socket to vrf device 2017-10-03 09:22:47 -07:00
ospf_nsm.c *: reindent 2017-07-17 14:04:07 +02:00
ospf_nsm.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_opaque.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
ospf_opaque.h *: fix be32 reading / 24-bit left shift 2017-09-09 19:50:58 +02:00
ospf_packet.c ospfd: show comand for ospf packet stats 2017-10-23 14:47:59 -07:00
ospf_packet.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_ri.c *: add missing \n in some help strings 2017-10-24 19:30:30 -02:00
ospf_ri.h OSPF OPAQUE, TE and RI macro refactoring & cleanup 2017-07-20 19:57:43 +02:00
ospf_route.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
ospf_route.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_routemap.c ospfd: OSPFv2 VRF Changes II 2017-10-03 09:15:20 -07:00
ospf_snmp.c ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_spf.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
ospf_spf.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_te.c ospfd: fix coverity warnings - security best practices violations 2017-10-24 19:30:30 -02:00
ospf_te.h Update PR #839 following review 2017-07-27 16:09:00 +02:00
ospf_vty.c ospfd: fix show ospf neigh json for multile nbrs 2017-10-30 19:31:28 -07:00
ospf_vty.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_zebra.c *: Modify zclient_init to require privs data 2017-10-23 18:12:29 -04:00
ospf_zebra.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
OSPF-ALIGNMENT.txt add note about alignment in LS updates due to opaque LSAs. 2004-11-17 17:59:52 +00:00
OSPF-MIB.txt spelling: s/supress/suppress/ 2004-11-05 13:24:12 +00:00
OSPF-TRAP-MIB.txt Initial revision 2002-12-13 20:15:29 +00:00
ospfd.c ospfd: Make 'struct zebra_privs_t' available. 2017-10-23 18:09:23 -04:00
ospfd.conf.sample Initial revision 2002-12-13 20:15:29 +00:00
ospfd.h ospfd: Make 'struct zebra_privs_t' available. 2017-10-23 18:09:23 -04:00
subdir.am ospfd: OSPFv2 VRF Changes II 2017-10-03 09:15:20 -07:00