From 03b3d409d76a2daa20070c1d0eb73e2fd8e13649 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 5 May 2024 00:10:45 +0900 Subject: [PATCH] Set maximum limit to pmd-auth-lb options The pmd-auto-lb options have maximum limits. Enforce the same limits at the parameter input to avoid passing unsupported values. Change-Id: Iea108300d67699f17407de364851566b0e2d875b --- manifests/dpdk.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/dpdk.pp b/manifests/dpdk.pp index e691662f..6acf7bc2 100644 --- a/manifests/dpdk.pp +++ b/manifests/dpdk.pp @@ -119,9 +119,9 @@ class vswitch::dpdk ( Boolean $enable_tso = false, Boolean $vhost_postcopy_support = false, Boolean $pmd_auto_lb = false, - Optional[Integer[0]] $pmd_auto_lb_rebal_interval = undef, - Optional[Integer[0]] $pmd_auto_lb_load_threshold = undef, - Optional[Integer[0]] $pmd_auto_lb_improvement_threshold = undef, + Optional[Integer[0, 20000]] $pmd_auto_lb_rebal_interval = undef, + Optional[Integer[0, 100]] $pmd_auto_lb_load_threshold = undef, + Optional[Integer[0, 100]] $pmd_auto_lb_improvement_threshold = undef, Hash $vs_config = {}, Boolean $skip_restart = false, ) {