Do not emit raw binary data after unconfirmed open 57/36057/2
authorJozef Behran <jbehran@cisco.com>
Thu, 10 Mar 2016 15:56:10 +0000 (16:56 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 10 Mar 2016 16:05:09 +0000 (16:05 +0000)
commitb760b426641ff5af6f9259e6e21acd101e8f6e3d
treebdebe31b4f4f93c938b5052b8b76b79de9d8e1ae
parent91b1a3d441b9f114f1797c02b27afc16da5d0b06
Do not emit raw binary data after unconfirmed open

When the OPEN message generated by the player is rejected,
the original code emitted raw binary data in the resulting
exception. Change that so it emits the hexlified version of
the raw binary data. The fix was done by removing the
duplicated code that generates the two error messages (one
for the log file, the other for the exception), taking the
correct code only.

Change-Id: If1ac202ba0d3c8720c8c442da1d533143dcddb7c
Signed-off-by: Jozef Behran <jbehran@cisco.com>
tools/fastbgp/play.py