diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-10 15:39:28 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-12 10:59:03 +0900 |
commit | e3dc6563e8388244c8ad00b650e413ba7dbc40f3 (patch) | |
tree | 2390df6ada02b4947e67194d64c86d272e30e6e8 | |
parent | 445176636ccb9bcbdcfe699dc8515d1e47ba4842 (diff) |
docs: add yaml example
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | docs/sources/getting-started.md | 16 |
1 files changed, 16 insertions, 0 deletions
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"} |