summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorSerguei Bezverkhi <sbezverk@cisco.com>2020-11-30 11:16:57 -0500
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2020-12-01 06:48:34 +0900
commit6e4eb286706c5702f94d3ee193a9e83ceedb085f (patch)
tree11a73c5fc86b09f0b6201d1a4a0f9ea5092670cf /internal
parentcb0c7ce51f8900210ac5ea94022c520d4e599857 (diff)
Add missing marshal of Prefix SID path attribute
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/apiutil/attribute.go3
1 files changed, 3 insertions, 0 deletions
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)