-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Insert VNIs via a next-item query (#1107)
* Better selection of Geneve VNI for a new VPC - Adds a `NextItem` query for the Geneve Virtual Network Identifier (VNI) for a new VPC. Previously, this was selected randomly and conflicts resulted in a 500. The new query starts from a random VNI, and selects the first available. - Makes the generic `NextItem` queries "wrapping". The previous implementation had a subtle problem, where the size of the search space was depdendent on the base / starting value, since we just searched from the base to the provided maximum value. This new implementation accepts a maximum _leftward_ or negative shift from the base value as well, and does a wrapping search from base, to the maximum, to the minimum, and back to the base. - Adds a call to `usdt::register_probes()` inside the test utility that sets up a test CRDB instance. This ensures that the `diesel-dtrace` probes are registered for tests. * Add test for the wrapping next-item query * Add initial slice of reserved VNIs * Maximum VNI value off by one
- Loading branch information
Showing
12 changed files
with
668 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
#[macro_use] | ||
mod next_item; | ||
pub mod network_interface; | ||
pub mod vni; | ||
pub mod vpc; | ||
pub mod vpc_subnet; |
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.