]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: fix wrong argv index in the "show ip ospf neighbor" command
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 31 Dec 2018 13:02:49 +0000 (11:02 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 31 Dec 2018 13:03:53 +0000 (11:03 -0200)
Fixes Issue #3544.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospfd/ospf_vty.c

index fb08833b61148626abee8ecb020dd9eca6b8d023..5e1fba34e4bb958d19fe17297c7044769d90924d 100644 (file)
@@ -5162,12 +5162,15 @@ DEFUN (show_ip_ospf_neighbor_id,
        bool uj = use_json(argc, argv);
        struct listnode *node = NULL;
        int ret = CMD_SUCCESS;
+       int idx_router_id = 0;
+
+       argv_find(argv, argc, "A.B.C.D", &idx_router_id);
 
        for (ALL_LIST_ELEMENTS_RO(om->ospf, node, ospf)) {
                if (!ospf->oi_running)
                        continue;
-               ret = show_ip_ospf_neighbor_id_common(vty, ospf, 0, argv, uj,
-                                                     0);
+               ret = show_ip_ospf_neighbor_id_common(vty, ospf, idx_router_id,
+                                                     argv, uj, 0);
        }
 
        return ret;