Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to write hot to create external/provider network?

From Dashboard, I can create a vxlan network from tenant level privilege and later using admin tab, can make it "external" and use this network to assign floating ip address.
Similar thing i can achieve using below CLI:

neutron net-create public --provider:network_type vxlan --router:external=true
neutron subnet-create public 192.168.56.0/24 --name pub-subnet --gateway 192.168.56.1 --disable-dhcp --allocation-pool*

 When am trying to write a heat template to create external/provider network or rather simulate above things. I am struggling. 
The template I have written so far is::

heat_template_version: 2015-10-15
description: A Template to create external network
resources:
    provider-net:
        type: OS::Neutron::ProviderNet
        properties:
            name: external-flat
            network_type: flat
            physical_network: physnet0
            #segmentation_id: 101
            shared: true
            #router_external: True 

Basically, I just wanted to modify network from internal type to external using HOT the way I did through CLI.

I am using liberty version of openstack.

How to write hot to create external/provider network?

From Dashboard, I can create a vxlan network from tenant level privilege and later using admin tab, can make it "external" and use this network to assign floating ip address. Similar thing i can achieve using below CLI: CLI:

neutron net-create public --provider:network_type vxlan --router:external=true
neutron subnet-create public 192.168.56.0/24 --name pub-subnet --gateway 192.168.56.1 --disable-dhcp --allocation-pool*

 When am trying to write a heat template to create external/provider network or rather simulate above things. I am struggling. 
The template I have written so far is::

heat_template_version: 2015-10-15
description: A Template to create external network
resources:
    provider-net:
        type: OS::Neutron::ProviderNet
        properties:
            name: external-flat
            network_type: flat
            physical_network: physnet0
            #segmentation_id: 101
            shared: true
            #router_external: True struggling.

Basically, I just wanted to modify network from internal type to external using HOT the way I did through CLI.

CLI.

I am using liberty version of openstack. openstack.

How to write hot to create external/provider network?

From Dashboard, I can create a vxlan network from tenant level privilege and later using admin tab, can make it "external" and use this network to assign floating ip address. address.

Similar thing i can achieve using below CLI:

neutron net-create public --provider:network_type vxlan --router:external=true
neutron subnet-create public 192.168.56.0/24 --name pub-subnet --gateway 192.168.56.1 --disable-dhcp --allocation-pool*

When am trying to write a heat template to create external/provider network or rather simulate above things. I am struggling. struggling.

Basically, I just wanted to modify network from internal type to external using HOT the way I did through CLI.

I am using liberty version of openstack.