From e3dc6563e8388244c8ad00b650e413ba7dbc40f3 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 10 Jan 2016 15:39:28 +0900 Subject: docs: add yaml example Signed-off-by: ISHIDA Wataru --- docs/sources/getting-started.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/sources/getting-started.md') diff --git a/docs/sources/getting-started.md b/docs/sources/getting-started.md index 5a64d440..b2c4be37 100644 --- a/docs/sources/getting-started.md +++ b/docs/sources/getting-started.md @@ -64,6 +64,22 @@ $ sudo -E gobgpd -f gobgpd.conf If you use a configuration format other than `toml`, you must specify the format by `-t` option. +equivalent yaml configuration. + +```yaml +global: + config: + as: 64512 + router-id: 192.168.255.1 +neighbors: + - config: + neighbor-address: 10.0.255.1 + peer-as: 65001 + - config: + neighbor-address: 10.0.255.2 + peer-as: 65002 +``` + ```bash $ sudo -E gobgpd -t yaml gobgpd.yml {"level":"info","msg":"Peer 10.0.255.1 is added","time":"2015-04-06T20:32:28+09:00"} -- cgit v1.2.3