-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Nlri::Unicast/Multicast to replace Nlri::Basic
The `Nlri::Basic` enum variant was used to carry both unicast and multicast SAFI NLRI. Replacing the `Basic` variant with explicit `Unicast` and `Multicast` variants is less error-prone for the user. Additionally, this commit removes methods from `Nlri` that hid similar details, e.g. the `prefix()` allowed the user to extract the prefix without knowing the exact variant of `Nlri`, so a user might unknowingly be looking at and using a prefix coming from a MplsVpn NLRI for example while they are actually only interested in say, unicast announcements.
- Loading branch information
Showing
3 changed files
with
182 additions
and
165 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
Oops, something went wrong.