diff options
author | Serguei Bezverkhi <sbezverk@cisco.com> | 2020-11-29 10:07:44 -0500 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-30 07:21:40 +0900 |
commit | 0422c608b302cd02b5bc3cd7063714d04c7fd595 (patch) | |
tree | 95c76f36a856bbec05972d360ba9f4bafee44651 /pkg/server/grpc_server.go | |
parent | 63b958b2a7f2724121103cb37d6c9dd12bb873d1 (diff) |
Code changes
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
Diffstat (limited to 'pkg/server/grpc_server.go')
-rw-r--r-- | pkg/server/grpc_server.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go index 06425dfa..a057d6ae 100644 --- a/pkg/server/grpc_server.go +++ b/pkg/server/grpc_server.go @@ -296,6 +296,11 @@ func api2Path(resource api.TableType, path *api.Path, isWithdraw bool) (*table.P return nil, err } + // TODO (sbezverk) At this poinnt nlri and path attributes are converted to native mode + // need to check if update with SR Policy nlri comes with mandatory route distinguisher + // extended community or NO_ADVERTISE community, with Tunnel Encapsulation Attribute 23 + // and tunnel type 15. If it is not the case ignore update and log an error. + pattrs := make([]bgp.PathAttributeInterface, 0) seen := make(map[bgp.BGPAttrType]struct{}) for _, attr := range attrList { |