Ask Your Question
0

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

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

Jigneshpt gravatar image

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

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 :
  router_interface1:
    type: OS::Neutron::RouterInterface
    properties:
      #router_id: "e66e15c2-984b-42fe-9bcc-e36779f9b930" 
      router_id: { get_param: Router_id }
      subnet_id: { get_resource: Management_subnet }

  router_interface2:
    type: OS::Neutron::RouterInterface
    properties:
      #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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 6,537 times

Last updated: Feb 01 '16