Skip to content

Commit 18bab91

Browse files
committed
Status to MTPNC definition
1 parent 2190628 commit 18bab91

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cns/types/infiniband/status.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ type MultitenantPodNetworkConfigSpec struct {
5151
IBMACAddresses []string `json:"IBMACAddresses,omitempty"`
5252
}
5353

54+
// +kubebuilder:validation:Enum=Available;ProgrammingPending;ProgrammingFailed;ProgrammingComplete;ReleasePending
55+
type InfinibandStatus string
56+
57+
const (
58+
Available InfinibandStatus = "Available"
59+
ProgrammingPending InfinibandStatus = "ProgrammingPending"
60+
ProgrammingFailed InfinibandStatus = "ProgrammingFailed"
61+
ProgrammingComplete InfinibandStatus = "ProgrammingComplete"
62+
ReleasePending InfinibandStatus = "ReleasePending"
63+
)
64+
5465
type InterfaceInfo struct {
5566
// NCID is the network container id
5667
NCID string `json:"ncID,omitempty"`

0 commit comments

Comments
 (0)