mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 05:03:40 +00:00
bgpd: When copying from src to dest do not overwrite the CONFIG_NODE
When the decision has been made to copy a peer configuration from a peer to another peer because one is taking over. Do not automatically set the CONFIG_NODE flag. Instead we need to handle that appropriately when the final decision is made to transfer. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b242e73b0b
commit
af717344a6
@ -1457,7 +1457,10 @@ void peer_xfer_config(struct peer *peer_dst, struct peer *peer_src)
|
||||
|
||||
/* peer flags apply */
|
||||
peer_dst->flags = peer_src->flags;
|
||||
|
||||
/*
|
||||
* The doppelganger *must* not have a config node stored
|
||||
*/
|
||||
UNSET_FLAG(peer_dst->flags, PEER_FLAG_CONFIG_NODE);
|
||||
peer_dst->peer_gr_present_state = peer_src->peer_gr_present_state;
|
||||
peer_dst->peer_gr_new_status_flag = peer_src->peer_gr_new_status_flag;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user