mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
bgpd: clarify evpn datastruct use for SA
Clear up an SA report by clarifying a function call in the evpn code. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
3e6fd94f83
commit
bd0254af6c
@ -2608,9 +2608,10 @@ static int install_evpn_route_entry(struct bgp *bgp, struct bgpevpn *vpn,
|
||||
&& (struct bgp_path_info *)pi->extra->parent == parent_pi)
|
||||
break;
|
||||
|
||||
if (!pi)
|
||||
pi = bgp_create_evpn_bgp_path_info(parent_pi, rn);
|
||||
else {
|
||||
if (!pi) {
|
||||
/* Create an info */
|
||||
(void)bgp_create_evpn_bgp_path_info(parent_pi, rn);
|
||||
} else {
|
||||
if (attrhash_cmp(pi->attr, parent_pi->attr)
|
||||
&& !CHECK_FLAG(pi->flags, BGP_PATH_REMOVED)) {
|
||||
bgp_unlock_node(rn);
|
||||
|
Loading…
Reference in New Issue
Block a user