From f0ae221b894fdd02f697f4fb6994623082e2175e Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 3 Mar 2015 12:23:43 +0900 Subject: update the whole code for the latest openconfig yang files The modified openconfig yang files are available at: https://github.com/osrg/yang/tree/gobgp Signed-off-by: FUJITA Tomonori --- tools/config/example_toml.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tools/config') diff --git a/tools/config/example_toml.go b/tools/config/example_toml.go index dbcbd454..2d556637 100644 --- a/tools/config/example_toml.go +++ b/tools/config/example_toml.go @@ -1,31 +1,31 @@ package main import ( - "github.com/osrg/gobgp/config" "bytes" "fmt" "github.com/BurntSushi/toml" + "github.com/osrg/gobgp/config" "net" ) func main() { - b := config.BgpType{ - Global: config.GlobalType{ + b := config.Bgp{ + Global: config.Global{ As: 12332, RouterId: net.ParseIP("10.0.0.1"), }, - NeighborList: []config.NeighborType{ - config.NeighborType{ + NeighborList: []config.Neighbor{ + config.Neighbor{ PeerAs: 12333, NeighborAddress: net.ParseIP("192.168.177.32"), AuthPassword: "apple", }, - config.NeighborType{ + config.Neighbor{ PeerAs: 12334, NeighborAddress: net.ParseIP("192.168.177.33"), AuthPassword: "orange", }, - config.NeighborType{ + config.Neighbor{ PeerAs: 12335, NeighborAddress: net.ParseIP("192.168.177.34"), AuthPassword: "grape", -- cgit v1.2.3