From d5f9f7b94fcb276b9153f433c9171eada80e5928 Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Fri, 14 Jul 2017 15:45:40 +0200 Subject: [PATCH] updated example config --- etc/ecix/birdwatcher.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etc/ecix/birdwatcher.conf b/etc/ecix/birdwatcher.conf index ad5aab7..bfdb04a 100644 --- a/etc/ecix/birdwatcher.conf +++ b/etc/ecix/birdwatcher.conf @@ -58,6 +58,11 @@ filter_fields = [] # Enable support for multitable configurations per_peer_tables = true -peer_protocol_prefix = 'ID' -pipe_protocol_prefix = 'P' +# Rewrite protocols: +# Apply a regular expression match to the protocol +peer_protocol_match = 'ID(.*)' +# Use the capture groups as variables +pipe_protocol_prefix = 'P$1' +# See https://golang.org/pkg/regexp/#Regexp.Expand +# for more information on how to use these variables.