<div dir="ltr"><div>Hi James,<br><br>Which version of openstack are you using?<br><br>I tried it in icehouse and got Unrecognized attribute(s) 'routes<br><br><b>$neutron router-update f0df2ef2-41d0-4327-bdcc-0bf28f97f23e --routes</b><br><b>Unrecognized attribute(s) 'routes'</b><br><br>See, we can't pass "--routes" option to router-update or router-create command.<br><a href="https://github.com/openstack/neutron/blob/ce6477e73da02b2b015e1a77797ce5076b9ba457/neutron/extensions/l3.py#L82">https://github.com/openstack/neutron/blob/ce6477e73da02b2b015e1a77797ce5076b9ba457/neutron/extensions/l3.py#L82</a><br><br></div><div>Please check attached screen-shots<br></div><div><br></div>Thanks,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Regards<br>Saju Madhavan<br>+91 09535134654<br></div></div>
<br><div class="gmail_quote">On Wed, Jun 10, 2015 at 7:46 PM, James Denton <span dir="ltr"><<a href="mailto:james.denton@rackspace.com" target="_blank">james.denton@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">The router-interface-add commands attaches a subnet to a router.<div><br></div><div>To add a route (or routes) to a router, try the following:</div><div><span style="font-size:9pt"><br></span></div><div><span style="font-size:9pt">Syntax: neutron router-update <router id> --routes type=dict list=true destination=<network/cidr>,nexthop=<gateway_ip></span></div><div><span style="font-size:9pt"><br></span></div><div><span style="font-size:9pt">To add multiple routes:</span></div><div><span style="font-size:9pt"><br></span></div><div><div><span style="font-size:9pt">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><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888"><div>
<div><div>James</div></div>

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