heat_template_version: 2013-05-23

description: Template that creates a private network.

parameters:
  #
  # Parameters provided by User in kollacluster.yaml
  #
  external_network:
    type: string
    label: Public network name or ID
    description: Public network with floating IP addresses.
  cidr:
    type: string
    label: Network CIDR
    description: The CIDR of the private network.
  dns:
    type: comma_delimited_list
    label: DNS nameservers
    description: Comma separated list of DNS nameservers for the private net.

resources:
  internal_network:
    type: OS::Neutron::Net

  private_subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id: { get_resource: internal_network }
      cidr: { get_param: cidr }
      dns_nameservers: { get_param: dns }

  router:
    type: OS::Neutron::Router
    properties:
      external_gateway_info:
        network: { get_param: external_network }

  router_interface:
    type: OS::Neutron::RouterInterface
    properties:
      router_id: { get_resource: router }
      subnet: { get_resource: private_subnet }

outputs:
  name:
    description: The private network.
    value: { get_attr: [internal_network, name] }

heat_template_version: 2013-05-23

description: Template that creates a private network.

parameters:
  #
  # Parameters provided by User in kollacluster.yaml
  #
  external_network:
    type: string
    label: Public network name or ID
    description: Public network with floating IP addresses.
  cidr:
    type: string
    label: Network CIDR
    description: The CIDR of the private network.
  dns:
    type: comma_delimited_list
    label: DNS nameservers
    description: Comma separated list of DNS nameservers for the private net.

resources:
  internal_network:
    type: OS::Neutron::Net

  internal_subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id: { get_resource: internal_network }
      cidr: { get_param: cidr }
      dns_nameservers: { get_param: dns }

  router:
    type: OS::Neutron::Router
    properties:
      external_gateway_info:
        network: { get_param: external_network }

  router_interface:
    type: OS::Neutron::RouterInterface
    properties:
      router_id: { get_resource: router }
      subnet: { get_resource: internal_subnet }

outputs:
  name:
    description: The private network.
    value: { get_attr: [internal_network, name] }

Change names from private to internal network
Change names from private to internal network
