-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Embiggen the goodness of maghemite (#385)
* Cleanup key in rib_in when all paths are removed Fixes: #369 Signed-off-by: Trey Aspelund <[email protected]> * Use proper path comparison during route path deletion Signed-off-by: Trey Aspelund <[email protected]> * bgp: Don't apply ImportExportPolicy to withdrawn nlri Import/Export filters are meant to modify which advertised prefixes are allowed. For Import, this is simply an allow-list that accepts a subset of the advertised nlri in a received update. For Export, this is an allow-list that accepts a subset of the locally originated nlri. In neither case do you want to apply these filters to the list of withdrawn nlri, as this can result in stale routes if a legitimate withdrawal is not sent or received. Fixes: #330 Signed-off-by: Trey Aspelund <[email protected]> * Various refactoring Removes an unused function. Guards an illumos-specific import. Consolidates (bfd) nexthop enabled functions into one that takes a bool. Moves RIB locking and looping of prefixes and PrefixChangeNotifications into RIB removal helper functions to improve pcn batching and consolidate locations for future RIB batch work. Removes re-processing of BGP path attributes. Removes re-looping over routes/paths in a few places. Eliminates some return types when no callers handled Result. Adds some TODOs. Signed-off-by: Trey Aspelund <[email protected]> * Add tests for RIB insertion/removal Signed-off-by: Trey Aspelund <[email protected]> * make clippy happy * Remove duplicate lock! macro mgd/src/bgp_admin.rs was re-defining lock! identically to the one in mg-common. Remove this dupe definition and just import from mg-common. Signed-off-by: Trey Aspelund <[email protected]> * Move completely over to use of lock! macro Replace all old instances of .lock().unwrap() with lock!() Signed-off-by: Trey Aspelund <[email protected]> * Move log module from bgp into mg_common Signed-off-by: Trey Aspelund <[email protected]> * Move bgp test to mg_common::log Signed-off-by: Trey Aspelund <[email protected]> * Make clippy happy Actually run the same cargo clippy command as CI, so I can see errors locally :/ Signed-off-by: Trey Aspelund <[email protected]> * add breadcrumb for bgp-id issue * Make remove_prefix_path closure more intuitive Signed-off-by: Trey Aspelund <[email protected]> * remove pcn todo * Use sled transaction for static route persistent db Move over to using transaction semantics for static route db updates. Also change remove_static_routes to take a reference, aligning with add_static_routes. Signed-off-by: Trey Aspelund <[email protected]> --------- Signed-off-by: Trey Aspelund <[email protected]>
- Loading branch information
Showing
29 changed files
with
548 additions
and
322 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.