diff --git a/api-runtime/rest-runtime/admin-web/AdminWeb-VPC-Subnet.go b/api-runtime/rest-runtime/admin-web/AdminWeb-VPC-Subnet.go index 40668d5d3..95506919d 100644 --- a/api-runtime/rest-runtime/admin-web/AdminWeb-VPC-Subnet.go +++ b/api-runtime/rest-runtime/admin-web/AdminWeb-VPC-Subnet.go @@ -376,6 +376,16 @@ func VPC(c echo.Context) error { // (4-2) make TR list with info list htmlStr += makeVPCTRList_html("", "", "", info.ResultList, zoneId) + providerName, _ := getProviderName(connConfig) + vpcCIDR := "10.0.0.0/16" + subnetCIDR := "10.0.8.0/22" + + switch providerName { + case "KTCLOUDVPC": + vpcCIDR = "172.25.0.0/12" + subnetCIDR = "172.25.10.0/24" + } + // (5) make input field and add // attach text box for add htmlStr += ` @@ -387,10 +397,10 @@ func VPC(c echo.Context) error { - + - + @@ -402,6 +412,11 @@ func VPC(c echo.Context) error { ` + + // set vpcCIDR & subnetCIDR + htmlStr = strings.ReplaceAll(htmlStr, "$$VPCCIDR$$", vpcCIDR) + htmlStr = strings.ReplaceAll(htmlStr, "$$SUBNETCIDR$$", subnetCIDR) + // make page tail htmlStr += `