-
Notifications
You must be signed in to change notification settings - Fork 13
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
Work with VNETs with multiple address spaces #5
Comments
Thanks. Are you able to make any code changes? |
I have no experience with C# 🤷 |
@51lver - I added the functionality to the code. |
Update - resolved |
@51lver Looks as though you figured it out? |
yes |
@gamullen OK i tested the function, it works. Thanks! |
If you have an address space in your VNet that is 10.0.0.0/26, and you want to get a 28 subnet out of it, you'd pass in "&cidr=28&addressSpace=10.0.0.0/26" |
So by default (without address space in the request) it won't use all the spaces for searching? |
No - the first space that is returned by the API is used if the subnet fits. If you want to target a specific address space specify it. |
@gamullen If you don't mind I'll try to add the work with a few spaces as a default option. |
Not sure what you mean. The code should go through all address spaces until it finds a suitable subnet. I just don't control the order in which the address spaces are processed. |
Hello guys,
First of all, thank you for this solution!
One thing to add - the current solution, I guess, doesn't work with VNET's containing a few address spaces.
Will be very nice to add it.
The text was updated successfully, but these errors were encountered: