summaryrefslogtreecommitdiffhomepage
path: root/config/util.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-28 21:02:03 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-28 21:02:03 +0900
commit58946b7924840f1effc993e95440266479c668d5 (patch)
treeac6fe1387af028f49a93f9f74f5bcf6ae694a376 /config/util.go
parent7a2b3951160804c6895714621099168e8e56aa74 (diff)
config: make config/state variable name simple
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/util.go')
-rw-r--r--config/util.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/util.go b/config/util.go
index 50d1b833..cc7cbba1 100644
--- a/config/util.go
+++ b/config/util.go
@@ -20,9 +20,9 @@ import (
)
func IsConfederationMember(g *Global, p *Neighbor) bool {
- if p.NeighborConfig.PeerAs != g.GlobalConfig.As {
- for _, member := range g.Confederation.ConfederationConfig.MemberAs {
- if member == p.NeighborConfig.PeerAs {
+ if p.Config.PeerAs != g.Config.As {
+ for _, member := range g.Confederation.Config.MemberAs {
+ if member == p.Config.PeerAs {
return true
}
}
@@ -31,7 +31,7 @@ func IsConfederationMember(g *Global, p *Neighbor) bool {
}
func IsEBGPPeer(g *Global, p *Neighbor) bool {
- return p.NeighborConfig.PeerAs != g.GlobalConfig.As
+ return p.Config.PeerAs != g.Config.As
}
func (c AfiSafis) ToRfList() ([]bgp.RouteFamily, error) {