diff options
author | Tom Shine <tomjshine@gmail.com> | 2020-04-23 01:05:39 +0100 |
---|---|---|
committer | Tom Shine <tomjshine@gmail.com> | 2020-04-24 00:25:59 +0100 |
commit | f11b9c7afb198dd6bfea9a167f41a62569f24756 (patch) | |
tree | 8e1acc824a5e664ca565d3729e12f1c10f780b69 /internal | |
parent | 3bdfaf9123756c93236c5048f180eb61ad7f8a68 (diff) |
Add BGP-LS SRLG support
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pkg/apiutil/attribute.go | 4 |
1 files changed, 4 insertions, 0 deletions
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, |