diff options
author | Francois Dumontet <francois.dumontet@6wind.com> | 2024-03-07 14:33:37 +0100 |
---|---|---|
committer | Francois Dumontet <francois.dumontet@6wind.com> | 2024-03-07 14:33:47 +0100 |
commit | c1e57dc4bd84864f6d576380f5e104e33270bc2d (patch) | |
tree | 6cdf2d37bd561e41be9efe11cb8da7a620ebb09c /ospf6d | |
parent | Merge pull request #15498 from idryzhov/mgmt-change-error (diff) | |
download | frr-c1e57dc4bd84864f6d576380f5e104e33270bc2d.tar.xz frr-c1e57dc4bd84864f6d576380f5e104e33270bc2d.zip |
ospf6d: add localLinkLocalAddress field
add localIfaceAdress field in show ipv6 ospf6 neighbor detail json
command.
Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_neighbor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_neighbor.c b/ospf6d/ospf6_neighbor.c index a6089b264..8b7afd89a 100644 --- a/ospf6d/ospf6_neighbor.c +++ b/ospf6d/ospf6_neighbor.c @@ -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, "localLinkLocalAddress", + "%pI6", on->ospf6_if->linklocal_addr); json_object_string_add(json_neighbor, "linkLocalAddress", linklocal_addr); json_object_string_add(json_neighbor, "neighborState", |