From 411bf84633c6a88fa1d08b5238d74b55910cffd1 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 4 Aug 2016 17:05:57 +0900 Subject: support mrt table dump (TABLE_DUMPv2 format) Only global rib dumping is supported for now. Signed-off-by: FUJITA Tomonori --- docs/sources/mrt.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'docs/sources') 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 [] ### 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 ``` -- cgit v1.2.3