-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
state_diff: fix filtering of host scoped routes
When an interface has multiple IPs in the same subnet, there will be host scoped routes for each of them and the "src" address will be one of the IPs for all of them. The filtering of this type of route was not working properly and including the extra routes in the diff. This change generalizes the verification to see if the destination address is one of the system own addresses instead of comparing it with the src address. While here, fix the data structure passed to the filtering method. It should be a list but a dictionary was being passed to it.
- Loading branch information
1 parent
d2aa012
commit ebb7480
Showing
2 changed files
with
15 additions
and
3 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