summaryrefslogtreecommitdiffhomepage
path: root/config/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/util.go')
-rw-r--r--config/util.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/util.go b/config/util.go
index 85a36e38..a3606682 100644
--- a/config/util.go
+++ b/config/util.go
@@ -30,6 +30,10 @@ func IsConfederationMember(g *Global, p *Neighbor) bool {
return false
}
+func IsEBGPPeer(g *Global, p *Neighbor) bool {
+ return p.NeighborConfig.PeerAs != g.GlobalConfig.As
+}
+
func CreateRfMap(p *Neighbor) map[bgp.RouteFamily]bool {
rfMap := make(map[bgp.RouteFamily]bool)
for _, rf := range p.AfiSafis.AfiSafiList {