-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent replication loop for re-originated route
Problem Scenario: The problem happens due following sequence of events: 1. Default route is pushed by SDN gateway to bgp.l3vpn.0 table of control-node with RD of service chain internal routing instance. 2. This route gets copied to public VN(due to configured route target). 3. The route from “public” is re-originated to service chain internal routing instance of left VN. 4. This re-originated route is replicated back to bgp.l3vpn.0 table. Since the RDs are same, it gets replicated to same bgp.l3vpn.0 route (step 1) with one Path from SDN Gateway and One path from re-orignated route. 5. Since the re-originated path has better local-pref than SDN Gateway path, previously replicated route(in step 2) is flushed. This causes the deletion of re-orinated route. 6. The path that was inserted in step 4 is deleted as re-originated route got deleted in previous step. This results in repeating from step-1. Solution: Prevent the re-origination of the route from public network if the source RD of the connected route/path is same as original route. 1. Copy the source RD when route is replicated from vpn table to inet/inet6 table 2. Prevent adding service chain route when source RD of the original route matches the connected route's source RD. 3. Add UTs to verify the scenario Change-Id: I0485e9b192c9e3f76bb1905ea68834a13f6385bc Closes-Bug: #1599588 (cherry picked from commit 5ee836d)
- Loading branch information
Showing
5 changed files
with
140 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters