From d8dc45772cd1a384cb15917bea43cac5d2a04f10 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 4 Sep 2015 14:30:13 +0900 Subject: api: kill api.Capability keep protobuf structures simple Signed-off-by: ISHIDA Wataru --- server/fsm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/fsm.go') diff --git a/server/fsm.go b/server/fsm.go index c255c021..c9950a5d 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -391,8 +391,7 @@ func capabilitiesFromConfig(gConf *config.Global, pConf *config.Neighbor) []bgp. caps = append(caps, bgp.NewCapRouteRefresh()) for _, rf := range pConf.AfiSafis.AfiSafiList { k, _ := bgp.GetRouteFamily(rf.AfiSafiName) - afi, safi := bgp.RouteFamilyToAfiSafi(k) - caps = append(caps, bgp.NewCapMultiProtocol(afi, safi)) + caps = append(caps, bgp.NewCapMultiProtocol(k)) } caps = append(caps, bgp.NewCapFourOctetASNumber(gConf.GlobalConfig.As)) return caps -- cgit v1.2.3