From 32f7faa8e7f83c20e50a37e44ba01a498939f574 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 27 Apr 2018 11:28:32 +0900 Subject: 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 --- docs/sources/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') 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" -- cgit v1.2.3