-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish NI routes in a deterministic and easy-to-read order
First IPv4 routes will be listed, then IPv6 routes. Inside the set of routes of the same IP version, default routes appear first for clarity, followed by other routes ordered by prefix length, with more specific routes (longer prefixes) listed before broader ones. This is at least how Linux lists the routes of a routing table. We also want to avoid returning <nil> as destination network for default routes, and instead show destination as 0.0.0.0/0 or ::/0 Signed-off-by: Milan Lenco <[email protected]>
- Loading branch information
1 parent
8822a92
commit 76de04f
Showing
3 changed files
with
89 additions
and
7 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