Skip to content

Commit 53ca492

Browse files
committed
Reference MTPNC Infiniband status
1 parent 1a7cbdf commit 53ca492

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

cns/api.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/Azure/azure-container-networking/cns/common"
1414
"github.com/Azure/azure-container-networking/cns/types"
15-
"github.com/Azure/azure-container-networking/cns/types/infiniband"
15+
"github.com/Azure/azure-container-networking/crd/multitenancy/api/v1alpha1"
1616
"github.com/Azure/azure-container-networking/crd/nodenetworkconfig/api/v1alpha"
1717
"github.com/pkg/errors"
1818
)
@@ -393,9 +393,9 @@ type AssignIBDevicesToPodResponse struct {
393393

394394
// GetIBDeviceStatusResponse represents the response containing InfiniBand device programming status
395395
type GetIBDeviceStatusResponse struct {
396-
MACAddress net.HardwareAddr `json:"macAddress"` // MAC address of the device
397-
PodNamespace string `json:"podNamespace"` // Namespace of pod to which the device is assigned, if any
398-
PodName string `json:"podName"` // Name of pod to which the device is assigned, if any
399-
Status infiniband.Status `json:"status"` // Device status (e.g., "Available", "ProgrammingPending", etc.)"
400-
Message string `json:"message"` // Additional message or error description
396+
MACAddress net.HardwareAddr `json:"macAddress"` // MAC address of the device
397+
PodNamespace string `json:"podNamespace"` // Namespace of pod to which the device is assigned, if any
398+
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.)"
400+
Message string `json:"message"` // Additional message or error description
401401
}

cns/types/infiniband/status.go

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

0 commit comments

Comments
 (0)