summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/config/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go
index d18deb50..e895d8de 100644
--- a/internal/pkg/config/util.go
+++ b/internal/pkg/config/util.go
@@ -130,7 +130,7 @@ func (n *Neighbor) IsConfederation(g *Global) bool {
}
func (n *Neighbor) IsEBGPPeer(g *Global) bool {
- return n.Config.PeerAs != g.Config.As
+ return n.Config.PeerAs != n.Config.LocalAs
}
func (n *Neighbor) CreateRfMap() map[bgp.RouteFamily]bgp.BGPAddPathMode {