-
Notifications
You must be signed in to change notification settings - Fork 51
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
Remove historic add VM way #1210
Conversation
This pull request fixes 6 alerts when merging dad335a into c2dc04a - view on LGTM.com fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 파악한 내용을 메모해 보았습니다 😊
@@ -187,11 +187,10 @@ func RunServer(port string) { | |||
g.DELETE("/:nsId/mcis", rest_mcis.RestDelAllMcis) | |||
|
|||
g.POST("/:nsId/mcis/:mcisId/vm", rest_mcis.RestPostMcisVm) | |||
g.POST("/:nsId/mcis/:mcisId/subgroup", rest_mcis.RestPostMcisSubGroup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MCIS에 VM을 추가하는 API는 1개로 단일화함
POST /ns/:nsId/mcis/:mcisId/subgroup
REST API가
POST /ns/:nsId/mcis/:mcisId/vm
으로 통합되었군요 ㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:
cb-tumblebug/src/testclient/scripts/8.mcis/add-vmgroup-to-mcis.sh
삭제cb-tumblebug/src/testclient/scripts/8.mcis/add-vm-to-mcis.sh
에 다음을 추가"subGroupSize": "'${NUMVM}'",
- mv
cb-tumblebug/src/testclient/scripts/8.mcis/id-list-vmgroup.sh
->id-list-subgroup.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jihoon-seo 파일명을 살펴보지 않았네요! ㅎㅎ
다음 PR에서 진행해도 될까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵!
// @Failure 404 {object} common.SimpleMsg | ||
// @Failure 500 {object} common.SimpleMsg | ||
// @Router /ns/{nsId}/mcis/{mcisId}/subgroup [post] | ||
func RestPostMcisSubGroup(c echo.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
POST /ns/:nsId/mcis/:mcisId/vm
- 기존: MCIS에 단일 VM을 추가하는 API
- 변경: MCIS에 VM n개(subGroup)를 추가하는 API
"subGroupSize": "3" 를 지정한 경우 예시
VM 6개에서 9개로 추가
"subGroupSize": "" 필드를 제시하지 않은 경우 예시
기존과 동일하게 VM이 1개만 추가됨.