Fix validation of datapath_type
Commit 5c809de01630ee7eede500106143810ca57b58b5 updated default value of $datapath_type but the validation logic was not properly updated. This change fixes the logic so that it properly fail with the new default value (undef). Change-Id: If44a90a817bf1fd5d5b9bd15fa915243a048a196
This commit is contained in:
parent
3bac73d8c3
commit
ad6d4bdbe9
@ -119,7 +119,7 @@ class ovn::controller(
|
||||
|
||||
include ovn::params
|
||||
|
||||
if $enable_dpdk and is_service_default($datapath_type) {
|
||||
if $enable_dpdk and (is_service_default($datapath_type) or $datapath_type == undef){
|
||||
fail('Datapath type must be set when DPDK is enabled')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user