summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/mrt.md
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-04 17:05:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-14 07:51:42 +0900
commit411bf84633c6a88fa1d08b5238d74b55910cffd1 (patch)
treee6d9d399bcb82f0245fabe011e0d08ea11b137f0 /docs/sources/mrt.md
parentd4b8a858299acc7164f452c8aa4180695252f38e (diff)
support mrt table dump (TABLE_DUMPv2 format)
Only global rib dumping is supported for now. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/mrt.md')
-rw-r--r--docs/sources/mrt.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/sources/mrt.md b/docs/sources/mrt.md
index ce1d0923..99f92afc 100644
--- a/docs/sources/mrt.md
+++ b/docs/sources/mrt.md
@@ -22,7 +22,9 @@ $ gobgp mrt inject global <dumpfile> [<number of prefix to inject>]
### <a name="section1.1"> Configuration
With the following configuration, gobgpd continuously dumps BGP update
-messages to `/tmp/updates.dump` file in the BGP4MP format.
+messages to `/tmp/updates.dump` file in the BGP4MP format and dumps
+routes in the global rib to `/tmp/table.dump` file in the TABLE_DUMPv2
+format every 60 seconds.
```toml
[global.config]
@@ -35,8 +37,15 @@ router-id = "10.0.255.254"
neighbor-address = "10.0.255.1"
[[mrt-dump]]
+ [mrt-dump.config]
dump-type = "updates"
file-name = "/tmp/updates.dump"
+
+[[mrt-dump]]
+ [mrt-dump.config]
+ dump-type = "table"
+ file-name = "/tmp/table.dump"
+ dump-interval = 60
```
Also gobgpd supports log rotation; a new dump file is created
@@ -57,9 +66,10 @@ router-id = "10.0.255.254"
neighbor-address = "10.0.255.1"
[[mrt-dump]]
+ [mrt-dump.config]
dump-type = "updates"
file-name = "/tmp/log/20060102.1504.dump"
- interval = 180
+ rotation-interval = 180
```