From ee9e2d93ecb9fc7fab28f6fddfc05a8748b1cdcf Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Tue, 1 Feb 2022 18:20:07 +0100 Subject: [PATCH] added optional AltPipe config --- etc/alice-lg/alice.example.conf | 5 +++++ pkg/sources/birdwatcher/config.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/etc/alice-lg/alice.example.conf b/etc/alice-lg/alice.example.conf index 38fea6a..a4a23be 100644 --- a/etc/alice-lg/alice.example.conf +++ b/etc/alice-lg/alice.example.conf @@ -180,6 +180,11 @@ api = http://rs1.example.com:29186/ type = multi_table peer_table_prefix = T pipe_protocol_prefix = M + +# Configure optional alternative pipes +# alt_pipe_prefix = "C" +# alt_pipe_suffix = "_lg" + # Timeout in seconds to wait for the status data (only required if enable_neighbors_status_refresh is true) neighbors_refresh_timeout = 2 diff --git a/pkg/sources/birdwatcher/config.go b/pkg/sources/birdwatcher/config.go index 31e29b9..2a2f326 100644 --- a/pkg/sources/birdwatcher/config.go +++ b/pkg/sources/birdwatcher/config.go @@ -17,5 +17,7 @@ type Config struct { MainTable string `ini:"main_table"` PeerTablePrefix string `ini:"peer_table_prefix"` PipeProtocolPrefix string `ini:"pipe_protocol_prefix"` + AltPipePrefix string `ini:"alt_pipe_prefix"` + AltPipeSuffix string `ini:"alt_pipe_suffix"` NeighborsRefreshTimeout int `ini:"neighbors_refresh_timeout"` }