Skip to content

Commit dd9404e

Browse files
committed
Addressing feedback
1 parent ac97074 commit dd9404e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

cns/swagger.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ paths:
157157

158158
/ibdevices/{macaddress}:
159159
get:
160-
summary: Get status about an IB device
160+
summary: Get status of an IB device
161161
description: >-
162162
Retrieves the current status of the specified IB device.
163163
parameters:
@@ -423,7 +423,7 @@ components:
423423
properties:
424424
PodID:
425425
type: string
426-
description: podname-podnamespace of which pod to attach these devices through
426+
description: podname-podnamespace of which pod to attach these devices to
427427
MACAddresses:
428428
type: array
429429
description: MAC addresses of IB devices such as "60:45:bd:a4:b5:7a"
@@ -495,18 +495,18 @@ components:
495495
type: integer
496496
description: Status of IB device (see cns/types/infiniband/status.go)
497497
oneOf:
498-
- title: ProgrammingPending
498+
- title: Available
499499
const: 0
500+
description: Device is available for use
501+
- title: ProgrammingPending
502+
const: 1
500503
description: Programming of device is pending
501504
- title: ProgrammingFailed
502-
const: 1
505+
const: 2
503506
description: Programming of device failed
504507
- title: ProgrammingComplete
505-
const: 2
508+
const: 3
506509
description: Programming of device is complete
507510
- title: ReleasePending
508-
const: 3
509-
description: Release of device is pending
510-
- title: Available
511511
const: 4
512-
description: Device is available for use
512+
description: Release of device is pending

cns/types/infiniband/status.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package infiniband
33
type Status int
44

55
const (
6-
ProgrammingPending Status = 0
7-
ProgrammingFailed Status = 1
8-
ProgrammingComplete Status = 2
9-
ReleasePending Status = 3
10-
Available Status = 4
6+
Available Status = 0
7+
ProgrammingPending Status = 1
8+
ProgrammingFailed Status = 2
9+
ProgrammingComplete Status = 3
10+
ReleasePending Status = 4
1111
)

0 commit comments

Comments
 (0)