How can I do "router set --route destination=" from Heat

asked 2017-06-27 05:27:07 -0500

jkrah gravatar image

First up.. apologies for opening a duplicate question - but I don't have enough points to repoen my original post (https://ask.openstack.org/en/question...)

In summary .. I have multiple routers and servers all being successfully created from heat but theres one last critical step I cant figure out and that is adding static routes to the routers.. the only commands I still need to automate are..

router set --route destination=0.0.0.0/0,gateway=10.0.1.1 app-router
router set --route destination=10.0.2.0/24.gateway=10.0.1.2 dmz-router

Any pointers to how this might be done in HEAT would be great .. or confirmation that this cant be done in HEAT would not be great, but at least I would know. If more info on my topology is required please let me know also..

edit retag flag offensive close merge delete

Comments

Not sure if it helps, but you can set routes on subnets.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-27 06:49:46 -0500 )edit

Thanks for the reply Bernd :-) .. but not quite what I'm after.. My hosts routes are fine.. its the actual router routes which I need to set ..

jkrah gravatar imagejkrah ( 2017-06-27 18:14:01 -0500 )edit

yes, I thought so, sorry. Looking at the documentation, it would seem that this was not implemented in Heat, but somebody from the Heat team should confirm this.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-27 19:07:28 -0500 )edit