Skip to content

504 lint overlap subnets #700

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

Merged
merged 21 commits into from
Jul 21, 2024
Merged

504 lint overlap subnets #700

merged 21 commits into from
Jul 21, 2024

Conversation

ShiriMoran
Copy link
Contributor

addresses #116


"Overlapping CIDR ranges between different subnets" issues:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
subnet subnet1-ky of cidr 10.240.10.0/16 and subnet subnet2-ky of cidr 10.240.20.0/24, both from VPC test-vpc1-ky, overlap in 10.240.20.0/24
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't the goal to warn about subnets from different VPCs with overlapping ranges?
I don't think it's possible to configure such subnets in the same VPC.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are correct. It should not be possible. Redundant code and test removed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove also the output file + add another relevant test instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right. output file removed. Added a test in which the overlapping is in part of the range (in which case the output is slightly different)

@ShiriMoran ShiriMoran merged commit 07217aa into main Jul 21, 2024
4 checks passed
@ShiriMoran ShiriMoran deleted the 504_lint_overlap_subnets branch July 21, 2024 12:56
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.

3 participants