dpdk: Ensure vhost_postcopy_support is a boolean

The parameter is later used by if logic so passing a different type
such as string can cause an unexpected result.

Change-Id: I6898a4b68b10416c9e20bfe486ff101ba0b1abd1
This commit is contained in:
Takashi Kajinami
2022-12-15 17:17:35 +09:00
parent 9a846178b1
commit ac3e7eef3c

View File

@@ -115,6 +115,7 @@ class vswitch::dpdk (
validate_legacy(Boolean, 'validate_bool', $enable_hw_offload)
validate_legacy(Boolean, 'validate_bool', $disable_emc)
validate_legacy(Boolean, 'validate_bool', $enable_tso)
validate_legacy(Boolean, 'validate_bool', $vhost_postcopy_support)
validate_legacy(Boolean, 'validate_bool', $pmd_auto_lb)
validate_legacy(Hash, 'validate_hash', $vs_config)