Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prohibit usage of vni zero #105

Merged
merged 5 commits into from
Mar 19, 2024
Merged

Prohibit usage of vni zero #105

merged 5 commits into from
Mar 19, 2024

Conversation

ghost
Copy link

@ghost ghost commented Mar 15, 2024

No description provided.

@ghost ghost requested review from MaxRink, Cellebyte, chdxD1 and schrej as code owners March 15, 2024 11:28
pkg/reconciler/layer3.go Outdated Show resolved Hide resolved
@MaxRink
Copy link
Collaborator

MaxRink commented Mar 15, 2024 via email

@Cellebyte
Copy link
Collaborator

@MaxRink only for the CRD ^^ the ConfigMap needs validation as well :)

@MaxRink
Copy link
Collaborator

MaxRink commented Mar 16, 2024 via email

@@ -165,6 +165,12 @@ func (r *reconcile) createVrfConfigMap(l3vnis []networkv1alpha1.VRFRouteConfigur
continue
}

if vni == 0 && vni > 16777215 {
err := fmt.Errorf("VNI can not be set to 0")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add the upper boundary in the error message

@Cellebyte Cellebyte merged commit f14ef14 into main Mar 19, 2024
1 of 3 checks passed
@schrej schrej deleted the feature/prohibit-vni-zero branch March 19, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants