forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zebra: delete kernel routes using an interface with no more IPv4 address
When the last IPv4 address of an interface is deleted, Linux removes all routes using this interface without any Netlink advertisement. Routes that have a IPv4 nexthop are correctly removed from the FRR RIB. However, routes that only have an interface with no more IPv4 addresses as a nexthop remains in the FRR RIB. In this situation, among the routes that this particular interface nexthop: - remove from the zebra kernel routes - reinstall the routes that have been added from FRR. It is useful when the nexthop is for example a VRF interface. Add related test cases in the zebra_netlink topotest. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
- Loading branch information
1 parent
1320779
commit dba8e5e
Showing
2 changed files
with
67 additions
and
6 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