From fcf7f7628a591cb371363a96cb0d57600e2dbaab Mon Sep 17 00:00:00 2001 From: Wim Henderickx Date: Mon, 10 Jun 2024 16:34:13 +0200 Subject: [PATCH] updated bfd defaults --- apis/backend/infra/v1alpha1/bfd_types.go | 7 +------ apis/backend/infra/v1alpha1/generated.proto | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/apis/backend/infra/v1alpha1/bfd_types.go b/apis/backend/infra/v1alpha1/bfd_types.go index be075a2..f9424b7 100644 --- a/apis/backend/infra/v1alpha1/bfd_types.go +++ b/apis/backend/infra/v1alpha1/bfd_types.go @@ -21,25 +21,20 @@ type BFDLinkParameters struct { // +optional Enabled *bool `json:"enabled,omitempty" yaml:"enabled,,omitempty" protobuf:"bytes,1,opt,name=enabled"` // MinTx defines the desired minimal interval for sending BFD packets, in msec. - // +kubebuilder:default=1000 // +optional MinTx *uint32 `json:"minTx,omitempty" yaml:"minTx,,omitempty" protobuf:"bytes,2,opt,name=minTx"` // MinTx defines the required minimal interval for receiving BFD packets, in msec. - // +kubebuilder:default:=1000 // +optional MinRx *uint32 `json:"minRx,omitempty" yaml:"minRx,,omitempty" protobuf:"bytes,3,opt,name=minRx"` // MinEchoRx defines the echo function timer, in msec. - // +kubebuilder:default:=0 // +optional MinEchoRx *uint32 `json:"minEchoRx,omitempty" yaml:"minEchoRx,,omitempty" protobuf:"bytes,4,opt,name=minEchoRx"` // Multiplier defines the number of missed packets before the session is considered down - // +kubebuilder:default:=5 // +optional Multiplier *uint32 `json:"multiplier,omitempty" yaml:"multiplier,,omitempty" protobuf:"bytes,5,opt,name=multiplier"` // TTL defines the time to live on the outgoing BFD packet // +kubebuilder:validation:Maximum:=255 - // +kubebuilder:validation:Minimum:=1 - // +kubebuilder:default:=1 + // +kubebuilder:validation:Minimum:=2 // +optional TTL *uint32 `json:"ttl,omitempty" yaml:"ttl,,omitempty" protobuf:"bytes,6,opt,name=ttl"` } diff --git a/apis/backend/infra/v1alpha1/generated.proto b/apis/backend/infra/v1alpha1/generated.proto index 19f0072..8c51fa5 100644 --- a/apis/backend/infra/v1alpha1/generated.proto +++ b/apis/backend/infra/v1alpha1/generated.proto @@ -33,29 +33,24 @@ message BFDLinkParameters { optional bool enabled = 1; // MinTx defines the desired minimal interval for sending BFD packets, in msec. - // +kubebuilder:default=1000 // +optional optional uint32 minTx = 2; // MinTx defines the required minimal interval for receiving BFD packets, in msec. - // +kubebuilder:default:=1000 // +optional optional uint32 minRx = 3; // MinEchoRx defines the echo function timer, in msec. - // +kubebuilder:default:=0 // +optional optional uint32 minEchoRx = 4; // Multiplier defines the number of missed packets before the session is considered down - // +kubebuilder:default:=5 // +optional optional uint32 multiplier = 5; // TTL defines the time to live on the outgoing BFD packet // +kubebuilder:validation:Maximum:=255 - // +kubebuilder:validation:Minimum:=1 - // +kubebuilder:default:=1 + // +kubebuilder:validation:Minimum:=2 // +optional optional uint32 ttl = 6; }