Skip to content

Commit

Permalink
ospf6d: add localIfaceAdress field
Browse files Browse the repository at this point in the history
add localIfaceAdress field in show ipv6 ospf6 neighbor detail json
command.

Signed-off-by: Francois Dumontet <[email protected]>
Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
fdumontet6WIND authored and louis-6wind committed Mar 4, 2024
1 parent 9feb1aa commit 58a8e07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ospf6d/ospf6_neighbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,8 @@ static void ospf6_neighbor_show_detail(struct vty *vty,
on->ospf6_if->interface->ifindex);
json_object_int_add(json_neighbor, "neighborInterfaceIndex",
on->ifindex);
json_object_string_addf(json_neighbor, "localIfaceAddress",
"%pI6", on->ospf6_if->linklocal_addr);
json_object_string_add(json_neighbor, "linkLocalAddress",
linklocal_addr);
json_object_string_add(json_neighbor, "neighborState",
Expand Down

0 comments on commit 58a8e07

Please sign in to comment.