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

Include excludedPrefixes when checking if vl3.IPAM contains an ip net #1602

Closed

Conversation

NikitaSkrynnik
Copy link
Contributor

@NikitaSkrynnik NikitaSkrynnik commented Mar 26, 2024

Description

vl3.IPAM has excludedPrefixes field. When calling IPAM.ContainsNetString() we also should check excludedPrefixes

Issue link

networkservicemesh/cmd-nse-vl3-vpp#289

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
… addr

Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
Comment on lines +189 to +193
for k := range p.excludedPrefixes {
if k == ipNet {
return true
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
for k := range p.excludedPrefixes {
if k == ipNet {
return true
}
}
_, ok := excludedPrefixes[ipNet]

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