mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 03:03:01 +00:00 
			
		
		
		
	bgpd: Do not delete peer_af when deactivating peer-group.
There is no peer_af allocated in `peer_activate`. Trying to delete the structure just results in an no-op and a error return value. The error message "couldn't delete af structure for peer" is unexpected. Signed-off-by: zyxwvu Shi <shiyuchen.syc@bytedance.com>
This commit is contained in:
		
							parent
							
								
									56fd30a303
								
							
						
					
					
						commit
						3057d1e45a
					
				| @ -2315,13 +2315,6 @@ int peer_deactivate(struct peer *peer, afi_t afi, safi_t safi) | ||||
| 		peer->afc[afi][safi] = 0; | ||||
| 		group = peer->group; | ||||
| 
 | ||||
| 		if (peer_af_delete(peer, afi, safi) != 0) { | ||||
| 			flog_err( | ||||
| 				EC_BGP_PEER_DELETE, | ||||
| 				"couldn't delete af structure for peer %s(%s, %s)", | ||||
| 				peer->host, afi2str(afi), safi2str(safi)); | ||||
| 		} | ||||
| 
 | ||||
| 		for (ALL_LIST_ELEMENTS(group->peer, node, nnode, tmp_peer)) { | ||||
| 			ret |= non_peergroup_deactivate_af(tmp_peer, afi, safi); | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 zyxwvu Shi
						zyxwvu Shi