Merge "Validate integer parameters"

This commit is contained in:
Zuul
2023-02-28 04:47:38 +00:00
committed by Gerrit Code Review
2 changed files with 14 additions and 0 deletions

View File

@@ -127,6 +127,16 @@ class vswitch::dpdk (
validate_legacy(Hash, 'validate_hash', $vs_config)
validate_legacy(Boolean, 'validate_bool', $skip_restart)
if $vlan_limit != undef {
validate_legacy(Integer, 'validate_integer', $vlan_limit)
}
if $revalidator_cores != undef {
validate_legacy(Integer, 'validate_integer', $revalidator_cores)
}
if $handler_cores != undef {
validate_legacy(Integer, 'validate_integer', $handler_cores)
}
$restart = !$skip_restart
kmod::load { 'vfio-pci': }

View File

@@ -51,6 +51,10 @@ class vswitch::ovs(
validate_legacy(Hash, 'validate_hash', $vs_config)
validate_legacy(Boolean, 'validate_bool', $skip_restart)
if $vlan_limit != undef {
validate_legacy(Integer, 'validate_integer', $vlan_limit)
}
$restart = !$skip_restart
if $enable_hw_offload {