diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-07-15 19:53:53 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-31 16:26:17 +0900 |
commit | 0b4b806c06f0ee50bb1bc1b30c38399553687abd (patch) | |
tree | 6898ec9eeb21a26668012c1c7743772da7b72214 /gobgpd | |
parent | 2ad42ead02cce21cf71b3dde0731e8f5c6d4ac6a (diff) |
config: use the latest openconfig yang
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 9d96401b..cf327f61 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -171,7 +171,7 @@ func main() { if bgpConfig == nil { bgpServer.SetGlobalType(newConfig.Bgp.Global) bgpConfig = &newConfig.Bgp - added = newConfig.Bgp.NeighborList + added = newConfig.Bgp.Neighbors.NeighborList deleted = []config.Neighbor{} } else { bgpConfig, added, deleted = config.UpdateConfig(bgpConfig, &newConfig.Bgp) @@ -188,11 +188,11 @@ func main() { } for _, p := range added { - log.Infof("Peer %v is added", p.NeighborAddress) + log.Infof("Peer %v is added", p.NeighborConfig.NeighborAddress) bgpServer.PeerAdd(p) } for _, p := range deleted { - log.Infof("Peer %v is deleted", p.NeighborAddress) + log.Infof("Peer %v is deleted", p.NeighborConfig.NeighborAddress) bgpServer.PeerDelete(p) } case sig := <-sigCh: |