From f11b9c7afb198dd6bfea9a167f41a62569f24756 Mon Sep 17 00:00:00 2001 From: Tom Shine Date: Thu, 23 Apr 2020 01:05:39 +0100 Subject: Add BGP-LS SRLG support --- internal/pkg/apiutil/attribute.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal') diff --git a/internal/pkg/apiutil/attribute.go b/internal/pkg/apiutil/attribute.go index 2915faa3..48463a0c 100644 --- a/internal/pkg/apiutil/attribute.go +++ b/internal/pkg/apiutil/attribute.go @@ -1230,6 +1230,10 @@ func NewLsAttributeFromNative(a *bgp.PathAttributeLs) *api.LsAttribute { } } + if attr.Link.Srlgs != nil { + apiAttr.Link.Srlgs = append(apiAttr.Link.Srlgs, *attr.Link.Srlgs...) + } + if attr.Prefix.IGPFlags != nil { apiAttr.Prefix.IgpFlags = &api.LsIGPFlags{ Down: attr.Prefix.IGPFlags.Down, -- cgit v1.2.3