summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-04-27 11:28:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-10 21:12:30 +0900
commit32f7faa8e7f83c20e50a37e44ba01a498939f574 (patch)
tree014b7755fb5cd873f2ea7bfd9ece4c9f846475ad /docs
parent0f88373949e2eed7a9dbcd1ebac64d76e54f6d40 (diff)
config: Enable to configure VRF via config file
This patch enables to configure VRF tables by using config file. This feature is useful when using VRF-Neighbor feature. Example of Usage: ```toml [[vrfs]] [vrfs.config] name = "vrf1" id = 1 rd = "65000:100" both-rt-list = ["65000:100"] ``` Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/configuration.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index 15a86761..9bef5ec3 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -30,6 +30,18 @@
route-monitoring-policy = "pre-policy"
statistics-timeout = 3600
+[[vrfs]]
+ [vrfs.config]
+ name = "vrf1"
+ # If id is omitted, automatically assigned.
+ id = 1
+ rd = "65000:100"
+ # Each configuration for import and export RTs;
+ # import-rt-list
+ # export-rt-list
+ # are preferred than both-rt-list.
+ both-rt-list = ["65000:100"]
+
[[mrt-dump]]
[mrt-dump.config]
dump-type = "updates"