From cc8d0fd748f83d774ec59e680586421cd9d9a6d2 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 2 Jan 2016 02:13:30 +0900 Subject: config: refactor config structure - change config variable name to chaincase from camelcase - remove unnecessary wrapper structs which only contain one slice field Signed-off-by: ISHIDA Wataru --- server/fsm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/fsm.go') diff --git a/server/fsm.go b/server/fsm.go index af635f83..93fa457a 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -421,7 +421,7 @@ func (h *FSMHandler) active() bgp.FSMState { func capabilitiesFromConfig(gConf *config.Global, pConf *config.Neighbor) []bgp.ParameterCapabilityInterface { caps := make([]bgp.ParameterCapabilityInterface, 0, 4) caps = append(caps, bgp.NewCapRouteRefresh()) - for _, rf := range pConf.AfiSafis.AfiSafiList { + for _, rf := range pConf.AfiSafis { k, _ := bgp.GetRouteFamily(rf.AfiSafiName) caps = append(caps, bgp.NewCapMultiProtocol(k)) } -- cgit v1.2.3