Hi,
I have created a route-table with one route and added to an existing
network "vnw1". I could not find this route in route list of "vnw1's" vrfs.
Where can I find it ? or when this routes will get propagated to compute
nodes from control node ?.

How to add a route table with routes using CLI ?
I tried "create-route-table" command implemented in "contrail/incehouse"
branch of https://github.com/Juniper/python-neutronclient.git, but that
doesn't have option to specify routes.

=== Code which I used to Create route table and add to network ====

        rt = vnc_api.RouteTable(route_table_name)
        conn.route_table_create(rt)
        vnw1.add_route_table(rt)
        conn.virtual_network_update(vnw1)
        routes = vnc_api.RouteTableType()
        route = vnc_api.RouteType(prefix="5.5.5.5/28",
next_hop="default-domain:demo:web-net:web-net")
        routes.add_route(route)
        rt.set_routes(routes)
        conn.route_table_update(rt)

Thanks,

Regards
Saju Madhavan
+91 09535134654
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to