summaryrefslogtreecommitdiffhomepage
path: root/server/zclient.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 /server/zclient.go
parent7a2b3951160804c6895714621099168e8e56aa74 (diff)
config: make config/state variable name simple
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/zclient.go')
-rw-r--r--server/zclient.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/zclient.go b/server/zclient.go
index fabd4205..33875476 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -151,8 +151,8 @@ func handleZapiMsg(msg *zebra.Message, server *BgpServer) []*SenderMsg {
switch b := msg.Body.(type) {
case *zebra.IPRouteBody:
pi := &table.PeerInfo{
- AS: server.bgpConfig.Global.GlobalConfig.As,
- LocalID: server.bgpConfig.Global.GlobalConfig.RouterId,
+ AS: server.bgpConfig.Global.Config.As,
+ LocalID: server.bgpConfig.Global.Config.RouterId,
}
if b.Prefix != nil && len(b.Nexthops) > 0 && b.Type != zebra.ROUTE_KERNEL {