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

Add network utility APIs #1434

Merged

Conversation

yunkon-kim
Copy link
Member

This PR will provide network utility APIs.

What changes:

  • Add a API to support network design
  • Add a API to support network validation
  • Update Swagger docs
  • Update the existing netutil pkg and example

APIs
image

I have analyzed the existing API classifications and then assigned separate API tags. It's because these APIs can be used to design and validate a network for both the MCIR and the MCIS. (I think it could be used more generally :-) )

It would be great for me to get some feedback on this, and I will quickly modify the route and tag in annotation according to the feedback :-D

API usage example

  1. POST /util/net/design
    This API can support network design more easily than calculating and designing all CIDR blocks. "minSubnets" and "minHosts" are supported as type for the subnetting rule.
    image

  2. POST /util/net/validate
    The following example shows validating a multi-cloud network consisting of 2 VPC networks, each with 4 subnets.
    image

* Add a API to support network design
* Add a API to support network validation
* Update Swagger docs
* Update the existing netutil pkg and example
@yunkon-kim
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jan 29, 2024
@cb-github-robot cb-github-robot merged commit 635710e into cloud-barista:main Jan 29, 2024
3 checks passed
@yunkon-kim yunkon-kim deleted the yunkon-kim-patch-240124 branch March 27, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants