Skip to content

Commit dd20daa

Browse files
authored
Merge pull request #955 from SchSeba/change_vlan_max
Change the SriovNetwork Vlan max value validation
2 parents 00529bb + 878c91d commit dd20daa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/v1/sriovnetwork_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type SriovNetworkSpec struct {
3535
//IPAM configuration to be used for this network.
3636
IPAM string `json:"ipam,omitempty"`
3737
// +kubebuilder:validation:Minimum=0
38-
// +kubebuilder:validation:Maximum=4096
38+
// +kubebuilder:validation:Maximum=4094
3939
// VLAN ID to assign for the VF. Defaults to 0.
4040
Vlan int `json:"vlan,omitempty"`
4141
// +kubebuilder:validation:Minimum=0

config/crd/bases/sriovnetwork.openshift.io_sriovnetworks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
type: string
108108
vlan:
109109
description: VLAN ID to assign for the VF. Defaults to 0.
110-
maximum: 4096
110+
maximum: 4094
111111
minimum: 0
112112
type: integer
113113
vlanProto:

deployment/sriov-network-operator-chart/crds/sriovnetwork.openshift.io_sriovnetworks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
type: string
108108
vlan:
109109
description: VLAN ID to assign for the VF. Defaults to 0.
110-
maximum: 4096
110+
maximum: 4094
111111
minimum: 0
112112
type: integer
113113
vlanProto:

0 commit comments

Comments
 (0)