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: add localIfaceAdress field #15474

Closed

Conversation

louis-6wind
Copy link
Contributor

add localIfaceAdress field in show ipv6 ospf6 neighbor detail json command.

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]>
@@ -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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't be better to name it linkLocalAddress?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it does beg the question, what the next json_object_string_add below is and how it is different than the addition of this particular field.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah the linklocal_addr as set on 988 is the neighbors LL address. Louis is attempting to show this router's interface LL address.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then localLinkLocalAddress? 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok I guess

@fdumontet6WIND
Copy link
Contributor

fdumontet6WIND commented Mar 5, 2024

The idea was to have the same name in show IPv6 and IPv4 ospf* neighbor detail json command

@ton31337
Copy link
Member

ton31337 commented Mar 6, 2024

The idea was to have the same name in show IPv6 and IPv4 ospf* neighbor detail json command

The only difference is that it is link-local, while IPv4 - not?

@fdumontet6WIND
Copy link
Contributor

PR to be closed due to Louis's absence.
continuing on
#15506

@ton31337 ton31337 closed this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants