-
Notifications
You must be signed in to change notification settings - Fork 53
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 subnet mgmt feature & REST APIs #878
Merged
seokho-son
merged 4 commits into
cloud-barista:main
from
jihoon-seo:211019_Update_vNet_mgmt_feature
Oct 21, 2021
Merged
Add subnet mgmt feature & REST APIs #878
seokho-son
merged 4 commits into
cloud-barista:main
from
jihoon-seo:211019_Update_vNet_mgmt_feature
Oct 21, 2021
Conversation
This file contains 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
c93585c
to
0b7579f
Compare
I resolved conflicts and rebased. 😊 |
@jihoon-seo subnet의 사용 패턴은 어떻게 되는지 질문 드립니다.. ^^
|
→ 네 맞습니다~~
Subnet 삭제가 되었습니다. 😊 |
/lgtm |
seokho-son
approved these changes
Oct 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
hacktoberfest-accepted
hacktoberfest-accepted
lgtm
This PR is acceptable by at least one reviewer
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.
TbVNetReq
struct에서 subnet 정보를 다루기 위해SpiderSubnetReqInfo
struct를 사용하고 있었는데,TbSubnetReq
struct를 새로 정의하고 이를 사용하도록 변경했습니다.(API 변경을 최소화하도록, 두 struct의 field는 거의 동일합니다.)
TbVNetInfo
struct에서 subnet 정보를 다루기 위해SpiderSubnetInfo
struct를 사용하고 있었는데,TbSubnetInfo
struct를 새로 정의하고 이를 사용하도록 변경했습니다.(API 변경을 최소화하도록, 두 struct의 field는 거의 동일합니다.)
g.POST("/:nsId/resources/vNet/:vNetId/subnet", rest_mcir.RestPostSubnet)
g.DELETE("/:nsId/resources/vNet/:parentResourceId/subnet/:childResourceId", rest_mcir.RestDelChildResource)
func RestPostSubnet(c echo.Context) error
func RestDelChildResource(c echo.Context) error
func RestDelSubnet(c echo.Context) error
(dummy function to generate Swagger doc entries)func CreateSubnet(nsId string, vNetId string, req TbSubnetReq, objectOnly bool) (TbVNetInfo, error)
func DelChildResource(nsId string, resourceType string, parentResourceId string, resourceId string, forceFlag string) error
func GenChildResourceKey(nsId string, resourceType string, parentResourceId string, resourceId string) string
func CheckChildResource(nsId string, resourceType string, parentResourceId string, resourceId string) (bool, error)
[Test outputs]
[For the record]
To replace
CBStore.Put(string(key), string(val))
->CBStore.Put(key, string(val))
:To replace
common.CBStore.Get(string(Key))
->common.CBStore.Get(Key)
: