[Openstack-operators] doubt about static routes and host routes

Saju M sajuptpm at gmail.com
Wed Jun 10 14:31:50 UTC 2015


Hi James,

Which version of openstack are you using?

I tried it in icehouse and got Unrecognized attribute(s) 'routes

*$neutron router-update f0df2ef2-41d0-4327-bdcc-0bf28f97f23e --routes*
*Unrecognized attribute(s) 'routes'*

See, we can't pass "--routes" option to router-update or router-create
command.
https://github.com/openstack/neutron/blob/ce6477e73da02b2b015e1a77797ce5076b9ba457/neutron/extensions/l3.py#L82

Please check attached screen-shots

Thanks,

Regards
Saju Madhavan
+91 09535134654

On Wed, Jun 10, 2015 at 7:46 PM, James Denton <james.denton at rackspace.com>
wrote:

> The router-interface-add commands attaches a subnet to a router.
>
> To add a route (or routes) to a router, try the following:
>
> Syntax: neutron router-update <router id> --routes type=dict list=true
> destination=<network/cidr>,nexthop=<gateway_ip>
>
> To add multiple routes:
>
> Syntax: neutron router-update <router id> --routes type=dict list=true
> destination=<network/cidr>,nexthop=<gateway_ip>
>  destination=<network/cidr>,nexthop=<gateway_ip>
>
> James
>
> On Jun 10, 2015, at 10:11 AM, Saju M <sajuptpm at gmail.com> wrote:
>
> Hi james,
> Thanks for the reply
> Through Neutron command "neutron router-create / router-update" we can't
> add routes to a router, right ?
> I could not find any way to add routes to a router.
>
> I think. "#neutron router-interface-add" command internally add routes to
> router, right ?
>
> Could you please share the command which help us to add routes to a router
> ?.
>
> Thanks,
>
> Regards
> Saju Madhavan
> +91 09535134654
>
> On Wed, Jun 10, 2015 at 4:52 PM, James Denton <james.denton at rackspace.com>
> wrote:
>
>> Hi Saju,
>>
>> Host routes added to a subnet get pushed to the instances in that subnet
>> via dhcp.
>>
>> 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.
>>
>> James
>>
>> Sent from my iPhone
>>
>> > On Jun 10, 2015, at 5:19 AM, Saju M <sajuptpm at gmail.com> wrote:
>> >
>> > Hi,
>> > Can we add static routes to the router which created by "#neutron
>> router-create" command ?
>> >
>> > What is the defference static routes of router and --host_routes of
>> subnet ?
>> >
>> > I also would like to know use case of static routes of router and
>> --host_routes of subnet ?
>> >
>> > Regards
>> > Saju Madhavan
>> > +91 09535134654
>> > _______________________________________________
>> > OpenStack-operators mailing list
>> > OpenStack-operators at lists.openstack.org
>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150610/0cc8a278/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2015-06-10 19:55:43.png
Type: image/png
Size: 114547 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150610/0cc8a278/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2015-06-10 20:01:11.png
Type: image/png
Size: 147003 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150610/0cc8a278/attachment-0003.png>


More information about the OpenStack-operators mailing list