diff --git a/internal/pkg/table/path.go b/internal/pkg/table/path.go index 06da04dca..5cff1c4d9 100644 --- a/internal/pkg/table/path.go +++ b/internal/pkg/table/path.go @@ -328,11 +328,14 @@ func (path *Path) IsIBGP() bool { // create new PathAttributes func (path *Path) Clone(isWithdraw bool) *Path { + newOriginInfo := *path.info + return &Path{ parent: path, IsWithdraw: isWithdraw, IsNexthopInvalid: path.IsNexthopInvalid, attrsHash: path.attrsHash, + info: &newOriginInfo, } }