diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index 5e04ccf6..6ead5fbe 100644 --- a/server/peer.go +++ b/server/peer.go @@ -543,8 +543,9 @@ func (peer *Peer) ToConfig(getAdvertised bool) *config.Neighbor { if peer.fsm.state == bgp.BGP_FSM_ESTABLISHED { rfList := peer.configuredRFlist() if getAdvertised { - pathList, _ := peer.getBestFromLocal(rfList) + pathList, filtered := peer.getBestFromLocal(rfList) conf.State.AdjTable.Advertised = uint32(len(pathList)) + conf.State.AdjTable.Filtered = uint32(len(filtered)) } else { conf.State.AdjTable.Advertised = 0 } |