Skip to content

Commit a045606

Browse files
committed
Update swagger and comment in api.go
1 parent 53ca492 commit a045606

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

cns/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ type GetIBDeviceStatusResponse struct {
396396
MACAddress net.HardwareAddr `json:"macAddress"` // MAC address of the device
397397
PodNamespace string `json:"podNamespace"` // Namespace of pod to which the device is assigned, if any
398398
PodName string `json:"podName"` // Name of pod to which the device is assigned, if any
399-
Status v1alpha1.InfinibandStatus `json:"status"` // Device status (e.g., "Available", "ProgrammingPending", etc.)"
399+
Status v1alpha1.InfinibandStatus `json:"status"` // Device status (e.g., "Unprogrammed", "Programming", "Programmed" etc.)"
400400
Message string `json:"message"` // Additional message or error description
401401
}

cns/swagger.yaml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -467,21 +467,11 @@ components:
467467
description: Human-readable message or error description
468468

469469
Status:
470-
type: integer
471-
description: Status of IB device (see cns/types/infiniband/status.go)
472-
oneOf:
473-
- title: Available
474-
const: 0
475-
description: Device is available for use
476-
- title: ProgrammingPending
477-
const: 1
478-
description: Programming of device is pending
479-
- title: ProgrammingFailed
480-
const: 2
481-
description: Programming of device failed
482-
- title: ProgrammingComplete
483-
const: 3
484-
description: Programming of device is complete
485-
- title: ReleasePending
486-
const: 4
487-
description: Release of device is pending
470+
type: string
471+
description: Status of IB device
472+
enum:
473+
- Unprogrammed
474+
- Programming
475+
- Programmed
476+
- Unprogramming
477+
- Failed

0 commit comments

Comments
 (0)