Custom Search

Thursday, June 11, 2015

Contrail add Static Routes via Host Routes

OpenContrail add Static Routes via Host Routes

1)
Static Routes

https://github.com/Juniper/contrail-controller/wiki/Static-Routes

* We can add static routes via contrail UI and Util script.
* Util script: https://github.com/Juniper/contrail-controller/blob/master/src/config/utils/provision_static_route.py
* Usinf this we can configure in a virtual-network with subnet 10.0.0.0/24, all the traffic originating from a VM in virtual-network, destined to subnet 11.1.1.0/24 can be configured to go via a service appliance (VM), using static route configured on a service VM interface.

* We can also add static route via host routes, for that we have to set "apply_subnet_host_routes=True" in  /etc/contrail/contrail-api.conf

2)
How to add static route via host routes ?

Site to Site VPN in OpenContrail:
https://github.com/numansiddique/snat_test/wiki/Site-to-Site-VPN-in-OpenContrail

3)
Patch which enable us to add static route via host routes.


https://review.opencontrail.org/#/c/1462/

https://github.com/Juniper/contrail-controller/commit/5031f59adcca7e238c1489fde2558521e2c2d81a#diff-1e8d43a6c800def7704681bd7b7827bd

4)
https://www.youtube.com/watch?v=PKJWFsyzBGw
http://fosshelp.blogspot.in/2015/06/contrail-add-static-routes-via-host_15.html



1 comment:

  1. 1)
    #sudo grep -r apply_subnet_host_routes /etc/contrail

    2)
    #sudo grep -r apply_subnet_host_routes /usr/lib/python2.7/dist-packages/vnc_openstack

    3)
    IFMap Node table
    http://192.168.56.102:8083/Snh_IFMapNodeTableListShowReq

    Route table
    http://192.168.56.102:8083/Snh_IFMapTableShowReq?x=route-table

    Interface Route table
    http://192.168.56.102:8083/Snh_IFMapTableShowReq?x=interface-route-table

    VRF List
    http://192.168.56.102:8085/Snh_VrfListReq?name=

    ReplyDelete