diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-28 21:02:03 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-28 21:02:03 +0900 |
commit | 58946b7924840f1effc993e95440266479c668d5 (patch) | |
tree | ac6fe1387af028f49a93f9f74f5bcf6ae694a376 /server/zclient.go | |
parent | 7a2b3951160804c6895714621099168e8e56aa74 (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.go | 4 |
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 { |