From a7e6068fbd51ba38a2b739df376ecb4febab4048 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Wed, 28 Aug 2019 14:33:00 -0400 Subject: Fix error in BGP Confederation syntax Sorry about this, I had forgot that TOML subtables require the name of the parent table in their path's. I've validated this configuration: ``` root@kkirsche-dev:/home/kkirsche# ./gobgpd -f config.toml {"level":"info","msg":"gobgpd started","time":"2019-08-28T18:32:23Z"} {"Topic":"Config","level":"info","msg":"Finished reading the config file","time":"2019-08-28T18:32:23Z"} {"level":"info","msg":"Peer 10.0.0.2 is added","time":"2019-08-28T18:32:23Z"} {"Topic":"Peer","level":"info","msg":"Add a peer configuration for:10.0.0.2","time":"2019-08-28T18:32:23Z"} ``` ``` root@kkirsche-dev:# cat config.toml [global] [global.config] as = 65001 router-id = "10.0.0.1" [global.confederation.config] enabled = true identifier = 30 member-as-list = [ 65002 ] ``` --- docs/sources/bgp-confederation.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/sources/bgp-confederation.md b/docs/sources/bgp-confederation.md index 884ed846..538efa9d 100644 --- a/docs/sources/bgp-confederation.md +++ b/docs/sources/bgp-confederation.md @@ -22,13 +22,14 @@ must also configure `member-as-list` with a list of other ASNs which compose the example, AS65001 would configure this attribute as `member-as-list = [ 65002 ]`. ```toml -[global.config] -as = 65001 -router-id = "10.0.0.1" - [confederation.config] - enabled = true - identifier = 30 - member-as-list = [ 65002 ] +[global] + [global.config] + as = 65001 + router-id = "10.0.0.1" + [global.confederation.config] + enabled = true + identifier = 30 + member-as-list = [ 65002 ] [[neighbors]] [neighbors.config] -- cgit v1.2.3