Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ospf6d: Json support added for command "show ipv6 ospf6 interface [json]" #7453

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ospf6d: Json support added for command "show ipv6 ospf6 interface [js…
…on]"

Modify code to add JSON format output in show command
"show ipv6 ospf6 interface" with proper formating

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
  • Loading branch information
YashRanjanVMWare committed Nov 17, 2020
commit f16ae8cf5dee1210bc8b0d0c81c5a9621ab22d72
7 changes: 4 additions & 3 deletions doc/user/ospf6d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ Showing OSPF6 information

This command shows LSA database summary. You can specify the type of LSA.

.. index:: show ipv6 ospf6 interface
.. clicmd:: show ipv6 ospf6 interface
.. index:: show ipv6 ospf6 interface [json]
.. clicmd:: show ipv6 ospf6 interface [json]

To see OSPF interface configuration like costs.
To see OSPF interface configuration like costs. JSON output can be
obtained by appending "json" in the end.

.. index:: show ipv6 ospf6 neighbor [json]
.. clicmd:: show ipv6 ospf6 neighbor [json]
Expand Down
2 changes: 1 addition & 1 deletion ospf6d/ospf6_bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void ospf6_bfd_show_info(struct vty *vty, void *bfd_info, int param_only,
json_object *json_obj, bool use_json)
{
if (param_only)
bfd_show_param(vty, bfd_info, 1, 0, 0, NULL);
bfd_show_param(vty, bfd_info, 1, 0, use_json, json_obj);
else
bfd_show_info(vty, bfd_info, 0, 1, use_json, json_obj);
}
Expand Down
1 change: 1 addition & 0 deletions ospf6d/ospf6_bfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "lib/json.h"
#ifndef OSPF6_BFD_H
#define OSPF6_BFD_H
#include "lib/json.h"

extern void ospf6_bfd_init(void);

Expand Down
Loading