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
This commit is contained in:
Takashi Kajinami 2024-05-05 00:10:45 +09:00
parent 7c7609b318
commit 03b3d409d7

View File

@ -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,
) {