From d53a5d11d9f3b0ee762a0510ff6608e69ed595ff Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 7 Nov 2015 17:04:08 +0900 Subject: table: fix local-pref handling for external peer remove a local-pref path attribute when peer is external and not a confederation member. Signed-off-by: ISHIDA Wataru --- server/peer.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'server/peer.go') diff --git a/server/peer.go b/server/peer.go index 95d3839e..cc695859 100644 --- a/server/peer.go +++ b/server/peer.go @@ -76,15 +76,7 @@ func NewPeer(g config.Global, conf config.Neighbor, loc *table.TableManager) *Pe } peer.adjRib = table.NewAdjRib(peer.configuredRFlist()) peer.fsm = NewFSM(&g, &conf) - if conf.NeighborConfig.PeerAs != g.GlobalConfig.As { - for _, member := range g.Confederation.ConfederationConfig.MemberAs { - if member == conf.NeighborConfig.PeerAs { - peer.isConfederationMember = true - break - } - } - } - + peer.isConfederationMember = config.IsConfederationMember(&g, &conf) return peer } -- cgit v1.2.3