Skip to content

Commit

Permalink
Bugfix to correct vNetId to match Spider's Create Subnet API
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Aug 21, 2024
2 parents fb93d52 + 4230d47 commit a01414b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mcir/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func CreateSubnet(nsId string, vNetId string, req TbSubnetReq, objectOnly bool)
requestBody.ReqInfo.Name = common.GenUid()
requestBody.ReqInfo.IPv4_CIDR = req.IPv4_CIDR

url := fmt.Sprintf("%s/vpc/%s/subnet", common.SpiderRestUrl, vNetId)
url := fmt.Sprintf("%s/vpc/%s/subnet", common.SpiderRestUrl, oldVNet.CspVNetName)

client := resty.New().SetCloseConnection(true)

Expand Down

0 comments on commit a01414b

Please sign in to comment.