Ask Your Question

How to attach an interface to existing router in heat template ?

asked 2016-01-20 01:04:49 -0500

Jigneshpt gravatar image

updated 2016-02-01 11:30:45 -0500

zaneb gravatar image

See the following snnipet of my .yaml file My requirement is to attach new interfaces to existing router only in my openstack project. If I hard-code router uuid like listed below, it works fine. But when I provide using "get_param: Router id" by putting router_id at command line parameter, it gives error while creating heat stack saying Router : <router id=""> not found..! Please help me, I'm not getting how to resolve it! I am using version 2014-10-16 heat template.

resources :
    type: OS::Neutron::RouterInterface
      #router_id: "e66e15c2-984b-42fe-9bcc-e36779f9b930" 
      router_id: { get_param: Router_id }
      subnet_id: { get_resource: Management_subnet }

    type: OS::Neutron::RouterInterface
      #router_id: "e66e15c2-984b-42fe-9bcc-e36779f9b930" 
      router_id: { get_param: Router_id }
      subnet_id: { get_param: AP-WLC_subnet_id }
edit retag flag offensive close merge delete


This ought to work. Can you include the parameters section of your template as well? It sounds like get_param is evaluating to an empty string for some reason.

zaneb gravatar imagezaneb ( 2016-02-01 11:33:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-01-18 12:53:18 -0500

Hi, Have you declared your router ID in the patrameters section of your template?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-20 01:04:49 -0500

Seen: 6,608 times

Last updated: Feb 01 '16