From e463a05cd029eb52f73d5495574d6a2c6ed0e35c Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Mon, 29 May 2017 09:31:47 +0200 Subject: [PATCH] added config option for per peer table setups --- bird/config.go | 6 ++++++ config.go | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bird/config.go b/bird/config.go index bd4479e..61c1572 100644 --- a/bird/config.go +++ b/bird/config.go @@ -24,3 +24,9 @@ type RateLimitConfig struct { Max int `toml:"requests_per_minute"` Enabled bool } + +type PerPeerTablesConfig struct { + Enabled bool `toml:"enabled"` + PeerProtocolPrefix string `toml:"peer_protocol_prefix"` + PipeProtocolPrefix string `tomo:"pipe_protocol_prefix"` +} diff --git a/config.go b/config.go index 8a5c394..69b7f4e 100644 --- a/config.go +++ b/config.go @@ -17,11 +17,12 @@ import ( type Config struct { Server endpoints.ServerConfig - Ratelimit bird.RateLimitConfig - Status bird.StatusConfig - Bird bird.BirdConfig - Bird6 bird.BirdConfig - Parser bird.ParserConfig + Ratelimit bird.RateLimitConfig + Status bird.StatusConfig + Bird bird.BirdConfig + Bird6 bird.BirdConfig + Parser bird.ParserConfig + PerPeerTables bird.PerPeerTablesConfig } // Try to load configfiles as specified in the files