diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-11-09 05:07:37 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-11-09 05:07:37 -0800 |
commit | d621be037478fe1f92eafb03356339459bd84bd6 (patch) | |
tree | a5afcff26a47016c6959780bff50d0a967914143 /config | |
parent | 344e575502102352ee448463763badc16e1ffdfd (diff) |
server: call ValidateUpdateMsg() in fsm instead of peer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r-- | config/util.go | 4 |
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 { |