-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
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", |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then localLinkLocalAddress
? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok I guess
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? |
PR to be closed due to Louis's absence. |
add localIfaceAdress field in show ipv6 ospf6 neighbor detail json command.