Skip to content

Commit 9533b51

Browse files
committed
hardware addr
1 parent f8b02af commit 9533b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cns/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"encoding/json"
99
"fmt"
10+
"net"
1011
"time"
1112

1213
"github.com/Azure/azure-container-networking/cns/common"
@@ -392,7 +393,7 @@ type AssignIBDevicesToPodResponse struct {
392393

393394
// GetIBDeviceStatusResponse represents the response containing InfiniBand device programming status
394395
type GetIBDeviceStatusResponse struct {
395-
MACAddress string `json:"macAddress"` // MAC address of the device
396+
MACAddress net.HardwareAddr `json:"macAddress"` // MAC address of the device
396397
PodNamespace string `json:"podNamespace"` // Namespace of pod to which the device is assigned, if any
397398
PodName string `json:"podName"` // Name of pod to which the device is assigned, if any
398399
Status infiniband.Status `json:"status"` // Device status (e.g., "Available", "ProgrammingPending", etc.)"

0 commit comments

Comments
 (0)