diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-20 00:47:54 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-20 01:05:44 +0900 |
commit | d2a74762413ac79e53670103078eff164127412c (patch) | |
tree | e1547988163b1d42839b3fa3aa26bf65cb85cf4a | |
parent | 2a0168f8674483b232962cfca7dda34d6ddacc52 (diff) |
server: change mrt config format
to be consistent with others.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | config/serve.go | 4 | ||||
-rw-r--r-- | docs/sources/configuration.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/serve.go b/config/serve.go index cb213ed8..afa8f340 100644 --- a/config/serve.go +++ b/config/serve.go @@ -30,7 +30,7 @@ func ReadConfigfileServe(path, format string, configCh chan BgpConfigSet) { Neighbors []Neighbor `mapstructure:"neighbors"` RpkiServers []RpkiServer `mapstructure:"rpki-servers"` BmpServers []BmpServer `mapstructure:"bmp-servers"` - Mrt []Mrt `mapstructure:"mrt"` + MrtDump []Mrt `mapstructure:"mrt-dump"` DefinedSets DefinedSets `mapstructure:"defined-sets"` PolicyDefinitions []PolicyDefinition `mapstructure:"policy-definitions"` }{} @@ -46,7 +46,7 @@ func ReadConfigfileServe(path, format string, configCh chan BgpConfigSet) { Neighbors: c.Neighbors, RpkiServers: c.RpkiServers, BmpServers: c.BmpServers, - MrtDump: c.Mrt, + MrtDump: c.MrtDump, } err = SetDefaultConfigValues(v, b) if err != nil { diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md index 62da19b2..89aa2c2c 100644 --- a/docs/sources/configuration.md +++ b/docs/sources/configuration.md @@ -37,7 +37,7 @@ address = "127.0.0.1" port = 11019 -[[mrt]] +[[mrt-dump]] dump-type = "updates" file-name = "/tmp/log/2006/01/02.1504.dump" interval = 180 |