-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wedge_agent config: static route deletes do not take effect
Summary: While working on D6649378, we noticed a bug in the implementation of applyConfig(). If a static route is deleted in the config, upon a warm boot, this deletion is not taking effect. In other words, when wedge_agent comes up, the deleted static route is still in the route table. Upon investigation, the bug is the way we apply static config. We rely on "prevCfg" to tell us what we had applied before in order to delete stale routes. However, in the case of warm boot there is no prevCfg, and we cannot reconcile stale config. The solution is to effectively "sync" all static routes, the way we do it for BGP. I.e., delete all existing routes and add all new routes. Differential Revision: D8219728 fbshipit-source-id: bc92e8c263541e55cef7b16111a7e3402da86eda
- Loading branch information
1 parent
4c5af38
commit 9e321df
Showing
5 changed files
with
84 additions
and
105 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