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 know issues in IPAM controller implementation and add tests #11

Merged
merged 6 commits into from
May 8, 2023

Conversation

ykulazhenkov
Copy link
Collaborator

@ykulazhenkov ykulazhenkov commented May 5, 2023

  • fix ip library to correctly handle out of range IPs
  • validate IP address in allocator more strictly
  • fix check for gataway in config validator
  • add tests for IPAM controller

+ add test coverage for the package

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@ykulazhenkov ykulazhenkov changed the title Fix know issues in IPAM controller implementation Fix know issues in IPAM controller implementation and add tests May 5, 2023
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
It was used to mask IP of the net.IPNet objects,
but net.ParseCIDR, which is the only source
for net.IPNet objects, in our case,
already has this logic.

Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@adrianchiris adrianchiris merged commit e4a3f7b into Mellanox:main May 8, 2023
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