X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=tools%2Ffastbgp%2Fplay.py;h=2342224a3ca76b0befbbeed771e5f6017c590583;hb=b760b426641ff5af6f9259e6e21acd101e8f6e3d;hp=f63155fcf25975d9a5da8c6527f7e64650bbd8bd;hpb=91b1a3d441b9f114f1797c02b27afc16da5d0b06;p=integration%2Ftest.git diff --git a/tools/fastbgp/play.py b/tools/fastbgp/play.py index f63155fcf2..2342224a3c 100755 --- a/tools/fastbgp/play.py +++ b/tools/fastbgp/play.py @@ -1645,10 +1645,12 @@ def job(arguments): # Using exact keepalive length to not to see possible updates. msg_in = bgp_socket.recv(19) if msg_in != generator.keepalive_message(): - logger.error("Open not confirmed by keepalive, instead got " + - binascii.hexlify(msg_in)) - raise MessageError("Open not confirmed by keepalive, instead got", - msg_in) + error_msg = ( + "Open not confirmed by keepalive, instead got " + + binascii.hexlify(msg_in) + ) + logger.error(error_msg) + raise MessageError(error_msg) timer.reset_peer_hold_time() # Send the keepalive to indicate the connection is accepted. timer.snapshot() # Remember this time.