From 232b30117c8eafc5cae7aec81ce9fafe742bdd4b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 1 May 2015 10:06:42 +0000 Subject: table: add support for route target constraint nlri add rtc route $ gobgp global rib add 65000 77 -a rtc check it $ gobgp global rib -a rtc Network Next Hop AS_PATH Age Attrs *> 65001:65000:75 0.0.0.0 [65001] 00:15:35 [{Origin: IGP}] Signed-off-by: ISHIDA Wataru --- server/grpc_server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/grpc_server.go') diff --git a/server/grpc_server.go b/server/grpc_server.go index 01acaf3d..c218a4ac 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -56,6 +56,8 @@ func convertAf2Rf(af *api.AddressFamily) (bgp.RouteFamily, error) { return bgp.RF_EVPN, nil } else if af.Equal(api.AF_ENCAP) { return bgp.RF_ENCAP, nil + } else if af.Equal(api.AF_RTC) { + return bgp.RF_RTC_UC, nil } return bgp.RouteFamily(0), fmt.Errorf("unsupported address family: %v", af) -- cgit v1.2.3