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

fix(evpn): fix empty vni or vtep in log #446

Merged
merged 1 commit into from
May 17, 2024

Conversation

atulpatel261194
Copy link
Contributor

No description provided.

Copy link
Collaborator

@artek-koltun artek-koltun left a comment

Choose a reason for hiding this comment

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

log.Println("vni:", lb.GetSpec().GetVni())
}
if lb.GetSpec().GetVtepIpPrefix().GetAddr().GetV4Addr() != 0 {
Vteip := fmt.Sprintf("%+v/%v", ipconv.IntToIPv4(lb.GetSpec().GetVtepIpPrefix().GetAddr().GetV4Addr()), lb.GetSpec().GetVtepIpPrefix().GetLen())
Copy link
Collaborator

Choose a reason for hiding this comment

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

why we cannot just print zeroes here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are cases where we dont pass the vni or vtep ip i.e vrf without vni & vtep. Then we dont expect them to be printed as zeros.

Signed-off-by: Atul Patel <Atul.Patel@intel.com>
@artek-koltun artek-koltun merged commit d1e34c8 into opiproject:main May 17, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants