Browse Source

Adjustments for new FRR

Sebastian Lohff 2 years ago
parent
commit
ab5b37a335
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      bin/routerparsers.py

+ 4
- 0
bin/routerparsers.py View File

@@ -58,6 +58,10 @@ def parseBGPData(raw, asno):
58 58
 
59 59
 def parseQuagga(data, raw, asno):
60 60
 	status = _quaggaFindCommand(data, "show ip bgp sum")
61
+
62
+	if status[0][0:3] == ['IPv4', 'Unicast', 'Summary:']:
63
+		del(status[0])
64
+
61 65
 	if status[0][0:3] != ['BGP', 'router', 'identifier']:
62 66
 		print(status)
63 67
 		err("Couldn't find router id in quagga output")

Loading…
Cancel
Save