I did a quick validation with using this. The condition doesn't look like the problem. According the below test, it is working as expected. Matching the whole word.
outputs:
role_data:
description: Role data for the Neutron API role.
value:
service_name: neutron_api
input:
get_param: NeutronMechanismDrivers
check:
if:
- is_ovn_in_neutron_mechanism_driver
- "yes"
- "no"
I did a quick validation with using this. The condition doesn't look like the problem. According the below test, it is working as expected. Matching the whole word.
It looks like some other issue.
------- ------- ------- ------- ------- ------- ------- ------- version: queens
(undercloud) [stack@undercloud heat]$ cat test.yaml
heat_template_
description: >
OpenStack containerized Neutron API service
parameters: ismDrivers: _list
NeutronMechan
default: 'ovn'
description: |
The mechanism drivers for the Neutron tenant network.
type: comma_delimited
conditions: in_neutron_ mechanism_ driver: {contains: ['ovn', {get_param: NeutronMechanis mDrivers} ]}
is_ovn_
outputs: mDrivers in_neutron_ mechanism_ driver
role_data:
description: Role data for the Neutron API role.
value:
service_name: neutron_api
input:
get_param: NeutronMechanis
check:
if:
- is_ovn_
- "yes"
- "no"
(undercloud) [stack@undercloud heat]$ cat env.yaml ismDrivers: 'mlnx_sdn_ assist, sriovnicswitch, openvswitch'
parameter_defaults:
NeutronMechan
(undercloud) [stack@undercloud heat]$