Skip to content

Commit ad00d82

Browse files
committed
ibmacaddresses
1 parent 5b074bf commit ad00d82

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cns/api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ type GetVMUniqueIDResponse struct {
388388

389389
// AssignIBDevicesToPodRequest represents the request for assigning InfiniBand devices to a pod
390390
type AssignIBDevicesToPodRequest struct {
391-
IBMACs []net.HardwareAddr `json:"ibmacs"` // List of IB device MAC addresses to assign
392-
PodNamespace string `json:"podNamespace"` // Namespace of the target pod
393-
PodName string `json:"podName"` // Name of the target pod
391+
IBMACAddresses []net.HardwareAddr `json:"ibmacaddresses"` // List of IB device MAC addresses to assign
392+
PodNamespace string `json:"podNamespace"` // Namespace of the target pod
393+
PodName string `json:"podName"` // Name of the target pod
394394
}
395395

396396
// AssignIBDevicesToPodRequest
@@ -402,7 +402,7 @@ type AssignIBDevicesToPodResponse struct {
402402

403403
// GetIBDeviceStatusResponse represents the response containing InfiniBand device programming status
404404
type GetIBDeviceStatusResponse struct {
405-
MACAddress net.HardwareAddr `json:"macAddress"` // MAC address of the device
405+
IBMACAddress net.HardwareAddr `json:"ibmacaddress"` // IB device MAC address
406406
PodNamespace string `json:"podNamespace"` // Namespace of pod to which the device is assigned, if any
407407
PodName string `json:"podName"` // Name of pod to which the device is assigned, if any
408408
Status v1alpha1.InfinibandStatus `json:"status"` // Device status (e.g., "Unprogrammed", "Programming", "Programmed" etc.)"

cns/swagger.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ components:
416416
AssignIBDevicesToPodRequest:
417417
type: object
418418
required:
419-
- ibmacs
419+
- ibmacaddresses
420420
- podNamespace
421421
- podName
422422
properties:
423-
ibmacs:
423+
ibmacaddresses:
424424
type: array
425425
items:
426426
type: string
@@ -444,13 +444,13 @@ components:
444444
GetIBDeviceStatusResponse:
445445
type: object
446446
required:
447-
- MACAddress
447+
- IBMACAddress
448448
- PodNamespace
449449
- PodName
450450
- Status
451451
- Message
452452
properties:
453-
MACAddress:
453+
IBMACAddress:
454454
type: string
455455
description: MAC address of the IB device
456456
PodNamespace:

0 commit comments

Comments
 (0)