Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[neighsync] Modification for ignoring neighbor entries
1. [neighsync] Ignore neighbor entries on non-router-interface 2. Don't ignore reserved IPv4 LL address - For BGP unnumber, reserved IPv4 LL (169.254.0.1) will be used as next hop. FRR configure it as permanent neighbor when BGP session is established. We ignore neighbor entry learned on non-router interface currently, this reserved IPv4 LL will not be synced if we don't configure use-link-local-only before this neighbor learnt event. 3. [neighsyncd] Ignore null MAC address neighbor while adding neighbor By executing the following commands would cause the netlink message bring a NULL MAC neighbor and cause the neighsyncd exception. The libnl api `nl_addr2str` would output the string `"none"` if the lladdr is `NULL`, and the string is an exception case for the class `MacAddress`. Therefore, this commit add to ignore this condition while the `rtnl_neigh_get_lladdr` can not retrieve the lladdr successfully ``` ip neigh replace 1.2.3.8 lladdr 00:33:55:66:55:66 dev Vlan10 nud noarp ip neigh replace 1.2.3.8 lladdr 00:33:55:66:55:66 dev Vlan10 nud none ```
- Loading branch information