From 0422c608b302cd02b5bc3cd7063714d04c7fd595 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Sun, 29 Nov 2020 10:07:44 -0500 Subject: Code changes Signed-off-by: Serguei Bezverkhi --- pkg/server/grpc_server.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/server') 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 { -- cgit v1.2.3