Skip to content

Commit dd872cf

Browse files
committed
make it post too
1 parent 50e0317 commit dd872cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cns/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434
V2Prefix = "/v0.2"
3535
EndpointPath = "/network/endpoints/"
3636
// IBDevice API paths
37-
IBDevicesPodPath = "/ibdevices/pod" // PUT /ibdevices/pod
37+
IBDevicesPodPath = "/ibdevices/pod" // POST /ibdevices/pod
3838
IBDevicesPath = "/ibdevices/" // GET /ibdevices/{mac-address-of-device}
3939
// Service Fabric SWIFTV2 mode
4040
StandaloneSWIFTV2 SWIFTV2Mode = "StandaloneSWIFTV2"
@@ -390,7 +390,7 @@ type GetVMUniqueIDResponse struct {
390390
// IBDevice API Contracts
391391

392392
// AssignIBDevicesToPodRequest represents the request to assign InfiniBand devices to a pod
393-
// PUT /ibdevices/pod
393+
// POST /ibdevices/pod
394394
type AssignIBDevicesToPodRequest struct {
395395
PodID string `json:"podID"` // podname-podnamespace format
396396
MACAddresses []string `json:"macAddresses"` // Array of MAC addresses like ["60:45:bd:a4:b5:7a", "7c:1e:52:07:11:36"]

cns/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ paths:
121121
$ref: "#/components/schemas/UnpublishNetworkContainerResponse"
122122

123123
/ibdevices/pod:
124-
put:
124+
post:
125125
summary: Assigns IB devices to a pod
126126
description: >-
127127
Assigns the specified IB devices to the pod identified by PodID. The

0 commit comments

Comments
 (0)