-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring get_primary_interface to use get_list_of_routes (#1377)
* refactoring get_primary_interface to use get_list_of_routes * following jasonzio advice to determine default route and primary values * converting candidates to list for python 3.4; primary_route should be the candidate with the lowest metric * converting candidates to list during generation instead of multiple later conversion * using get_metric instead of lambda to assign primary_route * cleaning module from unused variables; expliciting primary_interface; we don't actually need primary_metric
- Loading branch information
Showing
1 changed file
with
23 additions
and
38 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