Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to import/un-import static routes upon instance add/delete
The code in RoutePathReplicator::[Join|Leave] triggers import and cleanup of routes by scheduling walks of tables that have the import target being added/deleted in their export target list. This is not effective for static routes since static routes live in tables that do not have the route targets assocaited with the static routes. The ideal fix would be to maintain a dependency list of static routes for each route target. Implement a simpler fix for now, which is to trigger notification of all static routes when an import target is added/deleted to a table. This should have acceptable performance since the number of static routes is usually relatively small. Maintain a list of non-empty StaticRouteMgrs in the BgpServer so that we don't have to iterate through all RoutingInstances in order to walk all static routes. Change-Id: I559e014fd1fd001c5209dce8ab3e7564048889c7 Closes-bug: 1466755
- Loading branch information
Nischal Sheth
committed
Jun 20, 2015
1 parent
fe90314
commit 1a49af4
Showing
6 changed files
with
160 additions
and
4 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
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