summaryrefslogtreecommitdiffhomepage
path: root/config/util.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-09 05:07:37 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-09 05:07:37 -0800
commitd621be037478fe1f92eafb03356339459bd84bd6 (patch)
treea5afcff26a47016c6959780bff50d0a967914143 /config/util.go
parent344e575502102352ee448463763badc16e1ffdfd (diff)
server: call ValidateUpdateMsg() in fsm instead of peer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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 {