Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cns/requestcontroller/kubecontroller/crdtranslator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
ipNotCIDR = "10.0.0.1"
ipMalformed = "10.0.0.0.0"
defaultGateway = "10.0.0.2"
subnetID = "subnet1"
subnetName = "subnet1"
)

func TestStatusToNCRequestMalformedPrimaryIP(t *testing.T) {
Expand Down Expand Up @@ -155,9 +155,9 @@ func TestStatusToNCRequestSuccess(t *testing.T) {
IP: ipCIDR,
},
},
SubnetID: subnetID,
DefaultGateway: defaultGateway,
Netmask: "", // Not currently set by DNC Request Controller
SubnetName: subnetName,
DefaultGateway: defaultGateway,
SubnetAddressSpace: "", // Not currently set by DNC Request Controller
},
},
}
Expand Down
13 changes: 6 additions & 7 deletions nodenetworkconfig/api/v1alpha/nodenetworkconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ type Scaler struct {

// NetworkContainer defines the structure of a Network Container as found in NetworkConfigStatus
type NetworkContainer struct {
ID string `json:"id,omitempty"`
PrimaryIP string `json:"primaryIP,omitempty"`
SubnetID string `json:"subnetID,omitempty"`
IPAssignments []IPAssignment `json:"iPAssignments,omitempty"`
DefaultGateway string `json:"defaultGateway,omitempty"`
// Netmask for the subnet represented by this NC's SubnetID
Netmask string `json:"netmask,omitempty"`
ID string `json:"id,omitempty"`
PrimaryIP string `json:"primaryIP,omitempty"`
SubnetName string `json:"subnetName,omitempty"`
IPAssignments []IPAssignment `json:"iPAssignments,omitempty"`
DefaultGateway string `json:"defaultGateway,omitempty"`
SubnetAddressSpace string `json:"subnetAddressSpace,omitempty"`
}

// IPAssignment groups an IP address and Name. Name is a UUID set by the the IP address assigner.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ spec:
type: array
id:
type: string
netmask:
description: Netmask for the subnet represented by this NC's SubnetID
type: string
primaryIP:
type: string
subnetID:
subnetAddressSpace:
type: string
subnetName:
type: string
type: object
type: array
Expand Down