-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgp: introduce deterministic attribute set indexes for testing
By default, attribute sets are assigned indexes in sequential order. The problem with this approach is that those indexes are non-deterministic, whereas the data-driven testing framework requires deterministic operational data. To address this issue, introduce the "deterministic" feature. This feature calculates attribute set indexes based on a hash of their contents, ensuring determinism in testing scenarios. Since the hash values and attribute indexes use `u64`, the likelihood of collisions is virtually non-existent, especially considering that test topologies are normally small and simple. In normal operation, sequential indexes will continue to be used. The topology tests data have been update accordingly. Signed-off-by: Renato Westphal <[email protected]>
- Loading branch information
Showing
31 changed files
with
604 additions
and
759 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
Oops, something went wrong.