From 6e4eb286706c5702f94d3ee193a9e83ceedb085f Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Mon, 30 Nov 2020 11:16:57 -0500 Subject: Add missing marshal of Prefix SID path attribute Signed-off-by: Serguei Bezverkhi --- internal/pkg/apiutil/attribute.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/pkg/apiutil/attribute.go b/internal/pkg/apiutil/attribute.go index a85ec06b..b827af67 100644 --- a/internal/pkg/apiutil/attribute.go +++ b/internal/pkg/apiutil/attribute.go @@ -1455,6 +1455,9 @@ func MarshalPathAttributes(attrList []bgp.PathAttributeInterface) []*any.Any { case *bgp.PathAttributeLs: n, _ := ptypes.MarshalAny(NewLsAttributeFromNative(a)) anyList = append(anyList, n) + case *bgp.PathAttributePrefixSID: + n, _ := ptypes.MarshalAny(NewPrefixSIDAttributeFromNative(a)) + anyList = append(anyList, n) case *bgp.PathAttributeUnknown: n, _ := ptypes.MarshalAny(NewUnknownAttributeFromNative(a)) anyList = append(anyList, n) -- cgit v1.2.3