From cc8d0fd748f83d774ec59e680586421cd9d9a6d2 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 2 Jan 2016 02:13:30 +0900 Subject: config: refactor config structure - change config variable name to chaincase from camelcase - remove unnecessary wrapper structs which only contain one slice field Signed-off-by: ISHIDA Wataru --- tools/route-server/quagga-rsconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/route-server/quagga-rsconfig.go') diff --git a/tools/route-server/quagga-rsconfig.go b/tools/route-server/quagga-rsconfig.go index b104af8a..efd17cb3 100644 --- a/tools/route-server/quagga-rsconfig.go +++ b/tools/route-server/quagga-rsconfig.go @@ -57,7 +57,7 @@ func create_config_files(nr int, outputDir string) { c.Config.NeighborAddress = fmt.Sprintf("10.0.0.%d", i) c.Config.AuthPassword = fmt.Sprintf("hoge%d", i) - gobgpConf.Neighbors.NeighborList = append(gobgpConf.Neighbors.NeighborList, c) + gobgpConf.Neighbors = append(gobgpConf.Neighbors, c) q := NewQuaggaConfig(i, &gobgpConf.Global, &c, net.ParseIP("10.0.255.1")) quaggaConfigList = append(quaggaConfigList, q) os.Mkdir(fmt.Sprintf("%s/q%d", outputDir, i), 0755) -- cgit v1.2.3