Add GCP (Google Cloud Platform) mode support#33
Open
cbaugus wants to merge 1 commit intockabalan:mainfrom
Open
Add GCP (Google Cloud Platform) mode support#33cbaugus wants to merge 1 commit intockabalan:mainfrom
cbaugus wants to merge 1 commit intockabalan:mainfrom
Conversation
Implements GCP subnet mode which reserves 4 addresses per subnet according to Google Cloud VPC documentation: - Network address (first address) - Default gateway (second address) - Reserved for future use (second-to-last address) - Broadcast address (last address) Changes: - Added GCP mode to the Tools dropdown menu - Configured minimum subnet size as /29 for GCP - Updated address calculation logic to reserve correct addresses - Added appropriate validation and error messages - Updated documentation in README.md - Included links to official GCP documentation This aligns with GCP's subnet requirements as documented at: https://cloud.google.com/vpc/docs/subnets#unusable-ip-addresses-in-every-subnet
Author
|
@ckabalan can you please review this PR? |
Owner
|
Hey thanks for your patience. I've been focusing on family the last few weeks. I'll take a look at this. |
Author
Thanks I have a copy running in my Lab but want to share with others https://visualsubnetcalc.edge.baugus-lab.com/# |
Author
|
Any update on this review? |
Author
|
@ckabalan any update on this PR it would be supper handy to have for out use case of splitting networks in GCP regions and projects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
This PR adds GCP mode alongside the existing AWS, Azure, and OCI modes. According to Google Cloud VPC documentation, GCP reserves 4 addresses in each subnet:
Changes Made:
dist/index.htmldist/js/main.js:subnet_usable_first()andsubnet_usable_last()functions to correctly calculate usable IP rangesREADME.mdto document GCP mode and its reserved addressesTesting
The implementation correctly:
Test Plan