Skip to content
Snippets Groups Projects
Commit ef25b574 authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

Copy ClusterList when making a deep copy of a BGPPath.

parent 12c07528
Branches
Tags
No related merge requests found
...@@ -311,6 +311,11 @@ func (b *BGPPath) Copy() *BGPPath { ...@@ -311,6 +311,11 @@ func (b *BGPPath) Copy() *BGPPath {
cp.LargeCommunities = make([]types.LargeCommunity, len(cp.LargeCommunities)) cp.LargeCommunities = make([]types.LargeCommunity, len(cp.LargeCommunities))
copy(cp.LargeCommunities, b.LargeCommunities) copy(cp.LargeCommunities, b.LargeCommunities)
if b.ClusterList != nil {
cp.ClusterList = make([]uint32, len(cp.ClusterList))
copy(cp.ClusterList, b.ClusterList)
}
return &cp return &cp
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment