Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-26588

[OS::Neutron::Subnet] Allow 'auto' as valid gateway_ip value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • openstack-heat
    • None
    • EDPM Sprint 20
    • 1
    • Moderate

      In neutron, 'auto' is the default value for the Gateway IP when creating a subnet.
      Not setting the gateway_ip is equivalent to setting 'auto'. However, setting 'auto' leads to Heat refusing the value as invalid for a gateway.

      This is a problem when you want to create a gateway or not depending on a conditional:

       

      {{my_subnet: type: OS::Neutron::Subnet cidr:

      { get_param: cidr }

      network_id:

      { get_resource: my_network }

      gateway_ip:

      { if: [ want_gw, 'auto', null ] }

      }}

      It would be nice if Heat accepted 'auto' which is a valid value for neutron.

              rh-ee-dhrusing Dhruvendra Singh
              rh-ee-dhrusing Dhruvendra Singh
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: