Comment 3 for bug 1836011

Revision history for this message
Saravanan KR (skramaja) wrote :

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.

--------------------------------------------------------
(undercloud) [stack@undercloud heat]$ cat test.yaml
heat_template_version: queens

description: >
  OpenStack containerized Neutron API service

parameters:
  NeutronMechanismDrivers:
    default: 'ovn'
    description: |
        The mechanism drivers for the Neutron tenant network.
    type: comma_delimited_list

conditions:
  is_ovn_in_neutron_mechanism_driver: {contains: ['ovn', {get_param: NeutronMechanismDrivers}]}

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"

(undercloud) [stack@undercloud heat]$ cat env.yaml
parameter_defaults:
  NeutronMechanismDrivers: 'mlnx_sdn_assist,sriovnicswitch,openvswitch'
(undercloud) [stack@undercloud heat]$