From ab5b37a335f555df521e06f3e929d2a623578559 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Mon, 23 Oct 2017 10:03:48 +0200 Subject: [PATCH] Adjustments for new FRR --- bin/routerparsers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/routerparsers.py b/bin/routerparsers.py index 06ee1d4..2991d47 100644 --- a/bin/routerparsers.py +++ b/bin/routerparsers.py @@ -58,6 +58,10 @@ def parseBGPData(raw, asno): def parseQuagga(data, raw, asno): status = _quaggaFindCommand(data, "show ip bgp sum") + + if status[0][0:3] == ['IPv4', 'Unicast', 'Summary:']: + del(status[0]) + if status[0][0:3] != ['BGP', 'router', 'identifier']: print(status) err("Couldn't find router id in quagga output")