Skip to content

Commit

Permalink
added correct check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Haven456 committed Mar 19, 2024
1 parent 63d1f4d commit 88c3973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/layer3.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (r *reconcile) createVrfConfigMap(l3vnis []networkv1alpha1.VRFRouteConfigur
continue
}

if vni > 0 && vni < 16777215 {
if vni == 0 && vni > 16777215 {
err := fmt.Errorf("VNI can not be set to 0")
r.Logger.Error(err, "VNI can not be set to 0, ignoring", "vrf", spec.VRF, "name", l3vnis[i].ObjectMeta.Name, "namespace", l3vnis[i].ObjectMeta.Namespace)
continue
Expand Down

0 comments on commit 88c3973

Please sign in to comment.