File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ const (
3434 V2Prefix = "/v0.2"
3535 EndpointPath = "/network/endpoints/"
3636 // IBDevice API paths
37- IBDevicesPodPath = "/ibdevices/pod/ " // PUT /ibdevices/pod/{podname-podnamespace}
38- IBDevicesPath = "/ibdevices/" // GET /ibdevices/{mac-address-of-device}
37+ IBDevicesPodPath = "/ibdevices/pod" // PUT /ibdevices/pod
38+ IBDevicesPath = "/ibdevices/" // GET /ibdevices/{mac-address-of-device}
3939 // Service Fabric SWIFTV2 mode
4040 StandaloneSWIFTV2 SWIFTV2Mode = "StandaloneSWIFTV2"
4141 // K8s SWIFTV2 mode
@@ -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/{podname-podnamespace}
393+ // PUT /ibdevices/pod
394394type 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"]
Original file line number Diff line number Diff line change @@ -120,19 +120,12 @@ paths:
120120 schema :
121121 $ref : " #/components/schemas/UnpublishNetworkContainerResponse"
122122
123- /ibdevices/pod/{podname-podnamespace} :
123+ /ibdevices/pod :
124124 put :
125125 summary : Assigns IB devices to a pod
126126 description : >-
127127 Assigns the specified IB devices to the pod identified by PodID. The
128128 MAC addresses of the devices are provided in the request body.
129- parameters :
130- - name : podname-podnamespace
131- in : path
132- required : true
133- description : The name and namespace of the pod
134- schema :
135- type : string
136129 requestBody :
137130 required : true
138131 content :
You can’t perform that action at this time.
0 commit comments