From 87f8123138f2b2e48a51ee7d3f0b37c5fb850ae9 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Sun, 23 Oct 2016 17:22:35 +0200 Subject: [PATCH] Regexp from Barry: https://github.com/inex/birdseye/blob/master/app/Bird/Parser/Protocol/Bgp.php --- birdwatcher.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/birdwatcher.yaml b/birdwatcher.yaml index c235d5b..a2b0b74 100644 --- a/birdwatcher.yaml +++ b/birdwatcher.yaml @@ -13,11 +13,12 @@ matches: # pp_0236_as10310 Pipe master up 2016-07-22 => t_0236_as10310 getprotocol: fields: - - name - - prot - - date - - status - expr: "^([A-Z][a-z][0-9]*) (.*) .* (.*) (.*)" + - protocol + - table + - state + - state_changed + - connection + expr: '^(\w+)\s+BGP\s+(\w+)\s+(\w+)\s+([0-9\-]+)\s+(\w+)\s*$' next: "protdescription" # Description: Pipe for AS10310 - Yahoo! - VLAN Interface 236