Skip to content

Commit f7b6e8b

Browse files
authored
Add MacAddress to NodeInfo CRD (#2843)
* add macAddressList to NI CRD * address pr comments
1 parent 6c50d0d commit f7b6e8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crd/multitenancy/api/v1alpha1/nodeinfo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ type NodeInfoStatus struct {
4545
}
4646

4747
type DeviceInfo struct {
48-
DeviceType DeviceType `json:"deviceType,omitempty"`
49-
DeviceCount int `json:"deviceCount"`
48+
DeviceType DeviceType `json:"deviceType,omitempty"`
49+
MacAddress string `json:"macAddress"`
5050
}
5151

5252
func init() {

crd/multitenancy/manifests/multitenancy.acn.azure.com_nodeinfo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ spec:
4949
deviceInfos:
5050
items:
5151
properties:
52-
deviceCount:
53-
type: integer
5452
deviceType:
5553
enum:
5654
- acn.azure.com/vnet-nic
5755
- acn.azure.com/infiniband-nic
5856
type: string
57+
macAddress:
58+
type: string
5959
required:
60-
- deviceCount
60+
- macAddress
6161
type: object
6262
type: array
6363
type: object

0 commit comments

Comments
 (0)