<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The router-interface-add commands attaches a subnet to a router.<div class=""><br class=""></div><div class="">To add a route (or routes) to a router, try the following:</div><div class=""><span style="font-size: 9pt;" class=""><br class=""></span></div><div class=""><span style="font-size: 9pt;" class="">Syntax: neutron router-update <router id> --routes type=dict list=true destination=<network/cidr>,nexthop=<gateway_ip></span></div><div class=""><span style="font-size: 9pt;" class=""><br class=""></span></div><div class=""><span style="font-size: 9pt;" class="">To add multiple routes:</span></div><div class=""><span style="font-size: 9pt;" class=""><br class=""></span></div><div class=""><div class=""><span style="font-size: 9pt;" class="">Syntax: neutron router-update <router id> --routes type=dict list=true destination=<network/cidr>,nexthop=<gateway_ip></span> destination=<network/cidr>,nexthop=<gateway_ip></div></div><div class=""><br class=""></div><div class=""><div apple-content-edited="true" class="">
<div class=""><div class="">James</div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 10, 2015, at 10:11 AM, Saju M <<a href="mailto:sajuptpm@gmail.com" class="">sajuptpm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><div class=""><div class="">Hi james, <br class="">Thanks for the reply<br class=""></div>Through Neutron command "neutron router-create / router-update" we can't add routes to a router, right ?<br class="">I could not find any way to add routes to a router.<br class=""><br class=""></div>I think. "#neutron router-interface-add" command internally add routes to router, right ?<br class=""><div class=""><br class=""></div><div class="">Could you please share the command which help us to add routes to a router ?.<br class=""></div><div class=""><br class=""></div><div class="">Thanks,<br class=""></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature">Regards<br class="">Saju Madhavan<br class="">+91 09535134654<br class=""></div></div>
<br class=""><div class="gmail_quote">On Wed, Jun 10, 2015 at 4:52 PM, James Denton <span dir="ltr" class=""><<a href="mailto:james.denton@rackspace.com" target="_blank" class="">james.denton@rackspace.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Saju,<br class="">
<br class="">
Host routes added to a subnet get pushed to the instances in that subnet via dhcp.<br class="">
<br class="">
A route added to a router via router-create or router-update is added to the routing table within the qrouter namespace and affects all connected subnets/instances.<br class="">
<br class="">
James<br class="">
<br class="">
Sent from my iPhone<br class="">
<div class=""><div class="h5"><br class="">
> On Jun 10, 2015, at 5:19 AM, Saju M <<a href="mailto:sajuptpm@gmail.com" class="">sajuptpm@gmail.com</a>> wrote:<br class="">
><br class="">
> Hi,<br class="">
> Can we add static routes to the router which created by "#neutron router-create" command ?<br class="">
><br class="">
> What is the defference static routes of router and --host_routes of subnet ?<br class="">
><br class="">
> I also would like to know use case of static routes of router and --host_routes of subnet ?<br class="">
><br class="">
> Regards<br class="">
> Saju Madhavan<br class="">
> <a href="tel:%2B91%2009535134654" value="+919535134654" class="">+91 09535134654</a><br class="">
</div></div>> _______________________________________________<br class="">
> OpenStack-operators mailing list<br class="">
> <a href="mailto:OpenStack-operators@lists.openstack.org" class="">OpenStack-operators@lists.openstack.org</a><br class="">
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>