summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-15 09:24:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-15 09:24:49 +0900
commit2c12fa2b92c3372d8639e84be6ee89a9ab581158 (patch)
tree22de5e752ecb359f319d790bb838eee91123e315 /config
parentcdca8b5ceffd12ff702903e3369f3cafff2787ae (diff)
mrt: support per-peer table dump with route server configuration
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index d144b47c..2ecaae86 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -1038,6 +1038,8 @@ type MrtConfig struct {
DumpType MrtType `mapstructure:"dump-type"`
// original -> gobgp:file-name
FileName string `mapstructure:"file-name"`
+ // original -> gobgp:table-name
+ TableName string `mapstructure:"table-name"`
// original -> gobgp:dump-interval
DumpInterval uint64 `mapstructure:"dump-interval"`
// original -> gobgp:rotation-interval
@@ -1054,6 +1056,9 @@ func (lhs *MrtConfig) Equal(rhs *MrtConfig) bool {
if lhs.FileName != rhs.FileName {
return false
}
+ if lhs.TableName != rhs.TableName {
+ return false
+ }
if lhs.DumpInterval != rhs.DumpInterval {
return false
}