diff options
author | Valli A. Vallimamod <vma@sip.solutions> | 2020-07-31 15:34:14 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-10 22:17:26 +0900 |
commit | b44362fddd6000842534e1318df3090b23a7cffb (patch) | |
tree | 41fdf29a1688126ae1ddc5bc3362f6993ff98fd8 /internal | |
parent | c0d75f780617ee9f62f02dc79acb1fc1fef5b7a8 (diff) |
api: keeps backward compatibility when extending LsAddrPrefix
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pkg/apiutil/attribute.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/pkg/apiutil/attribute.go b/internal/pkg/apiutil/attribute.go index 69622b0c..9d70802b 100644 --- a/internal/pkg/apiutil/attribute.go +++ b/internal/pkg/apiutil/attribute.go @@ -635,37 +635,37 @@ func MarshalNLRI(value bgp.AddrPrefixInterface) *any.Any { case *bgp.LsNodeNLRI: nlri = &api.LsAddrPrefix{ Type: api.LsNLRIType_LS_NLRI_NODE, + Nlri: MarshalLsNodeNLRI(n), Length: uint32(n.Length), ProtocolId: api.LsProtocolID(n.ProtocolID), Identifier: n.Identifier, - Nlri: MarshalLsNodeNLRI(n), } case *bgp.LsLinkNLRI: nlri = &api.LsAddrPrefix{ Type: api.LsNLRIType_LS_NLRI_LINK, + Nlri: MarshalLsLinkNLRI(n), Length: uint32(n.Length), ProtocolId: api.LsProtocolID(n.ProtocolID), Identifier: n.Identifier, - Nlri: MarshalLsLinkNLRI(n), } case *bgp.LsPrefixV4NLRI: nlri = &api.LsAddrPrefix{ Type: api.LsNLRIType_LS_NLRI_PREFIX_V4, + Nlri: MarshalLsPrefixV4NLRI(n), Length: uint32(n.Length), ProtocolId: api.LsProtocolID(n.ProtocolID), Identifier: n.Identifier, - Nlri: MarshalLsPrefixV4NLRI(n), } case *bgp.LsPrefixV6NLRI: nlri = &api.LsAddrPrefix{ Type: api.LsNLRIType_LS_NLRI_PREFIX_V6, + Nlri: MarshalLsPrefixV6NLRI(n), Length: uint32(n.Length), ProtocolId: api.LsProtocolID(n.ProtocolID), Identifier: n.Identifier, - Nlri: MarshalLsPrefixV6NLRI(n), } } } |