Ask Your Question

why the 'routes' in 'neutron router-show' is empty?

asked 2014-03-12 05:06:06 -0500

Julian Zhu gravatar image

updated 2014-03-12 05:08:19 -0500

Hi Guys, Now I am studying the implement of l3-agent and I have setup a network node with l3-agent successfully, where i can see the routes in 'ip netns exec qrouter-xxxx ip route'. I checked the code and found that the routes information is from the router['routes'], but when I use 'neutron router-show' to check the router details, i got the result below:

[root@test02 openstack(keystone_admin)]# neutron router-show 7e7c305d-6b3b-4ae9-9fe6-c2cf93584b9f
| Field                 | Value                                                                       |
| admin_state_up        | True                                                                        |
| external_gateway_info | {"network_id": "f0c4bd9a-6be3-450c-94a7-742cc774dba1", "enable_snat": true} |
| id                    | 7e7c305d-6b3b-4ae9-9fe6-c2cf93584b9f                                        |
| name                  | router-1                                                                    |
| routes                |                                                                             |
| status                | ACTIVE                                                                      |
| tenant_id             | a6ca870473544c3596411c030b5e3d06                                            |

the routes is empty.

Can anyone help to explain why the routes is empty? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-12 11:04:06 -0500

foexle gravatar image

This routes are not the default routes.

This are

neutron=# select * from routerroutes ;
 destination | nexthop | router_id 
(0 rows)

so they would be extend the default routes in the code. You can set router routes with

neutron router-update --routerroutes

Cheers Heiko

edit flag offensive delete link more


i see, thank you.

Julian Zhu gravatar imageJulian Zhu ( 2014-03-16 21:01:14 -0500 )edit

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


Asked: 2014-03-12 05:06:06 -0500

Seen: 266 times

Last updated: Mar 12 '14