diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-12-31 14:02:49 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-12-31 14:03:53 +0100 |
commit | f4f4b6bff5f33729bd2cc25ad0baffc707192509 (patch) | |
tree | 2b7074e51f573d8dfdc39c94fa6858235f51a002 /ospfd/ospf_vty.c | |
parent | Merge pull request #3535 from kareiva/master (diff) | |
download | frr-f4f4b6bff5f33729bd2cc25ad0baffc707192509.tar.xz frr-f4f4b6bff5f33729bd2cc25ad0baffc707192509.zip |
ospfd: fix wrong argv index in the "show ip ospf neighbor" command
Fixes Issue #3544.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index fb08833b6..5e1fba34e 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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; |