Prevent loops when re-originating service chain routes
Implement a new attribute called OriginVnPath to keep track of VNs from
which a given route has been re-originated. The OriginVn of ServiceChain
destination routing instance gets prepended to OriginVnPath when adding
the ServiceChain route. Further, a route is not re-originated if source
routing instance's OriginVn is already in the OriginVnPath.
This prevents route re-origination loops even if VNs are mis-configured
such that multiple VNs have the same route target and there are transit
VNs with mis-configured route targets as well.
Reviewed: https:/ /review. opencontrail. org/6020 github. org/Juniper/ contrail- controller/ commit/ 0a70be6d79b21e9 ad47e41cc2a3ec8 fa8b230ad8
Committed: http://
Submitter: Zuul
Branch: master
commit 0a70be6d79b21e9 ad47e41cc2a3ec8 fa8b230ad8
Author: Nischal Sheth <email address hidden>
Date: Tue Dec 30 14:00:46 2014 -0800
Prevent loops when re-originating service chain routes
Implement a new attribute called OriginVnPath to keep track of VNs from
which a given route has been re-originated. The OriginVn of ServiceChain
destination routing instance gets prepended to OriginVnPath when adding
the ServiceChain route. Further, a route is not re-originated if source
routing instance's OriginVn is already in the OriginVnPath.
This prevents route re-origination loops even if VNs are mis-configured
such that multiple VNs have the same route target and there are transit
VNs with mis-configured route targets as well.
Change-Id: Iab76ad4b07a69f 71383db8e72531f b31bade04bd
Closes-Bug: 1401010