Commit 9268ed2e authored by Frederik Kriewitz's avatar Frederik Kriewitz Committed by Tomas Hlavacek
Browse files

BIRD: Fix timeout in case ip/subnet is not in the routing table

Fixes exceptions like this:
ERROR: Exception occured while running a command:Traceback (most recent
call last):
  File "/var/www/html/", line 498, in commandThreadBody
  File "/var/www/html/", line 463, in runAsyncCommand
    return self.runRawCommand(c,outfile)
  File "/var/www/html/", line 544, in runRawCommand
    l = sf.readline()
  File "/usr/lib/python2.7/", line 447, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out
Signed-off-by: Tomas Hlavacek's avatarTomas Hlavacek <>
parent 2df681bf
......@@ -514,6 +514,9 @@ class BirdRouterLocal(ulgmodel.LocalRouter,BirdRouter):
elif(code == 13):
# show status last line
return True
elif(code == 8001):
# network not in table end
return True
elif(code >= 9000):
# probably error
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment