diff options
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |