From: Jozef Behran Date: Thu, 14 Jan 2016 10:10:27 +0000 (+0100) Subject: Fixed play.py broken by the "big cleanup change" X-Git-Tag: release/beryllium-sr1~221 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=abeae1864ac4b47c730b9deb6c66c68c40f77384;p=integration%2Ftest.git Fixed play.py broken by the "big cleanup change" Change-Id: Ifc8150825e14e262eef272f0fd18f56ae746917b Signed-off-by: Jozef Behran --- diff --git a/tools/fastbgp/play.py b/tools/fastbgp/play.py index cd0ce016ac..1d96f184b9 100755 --- a/tools/fastbgp/play.py +++ b/tools/fastbgp/play.py @@ -815,16 +815,16 @@ class MessageGenerator(object): "\x02" # AS segment type (AS_SEQUENCE) "\x01" # AS segment length (1) ) - my_AS = struct.pack(">I", my_autonomous_system) - path_attributes_hex += my_AS # AS segment (4 bytes) + my_as_hex = struct.pack(">I", my_autonomous_system) + path_attributes_hex += my_as_hex # AS segment (4 bytes) path_attributes_hex += ( "\x40" # Flags ("Well-Known") "\x03" # Type (NEXT_HOP) "\x04" # Length (4) ) - next_hop = struct.pack(">I", int(next_hop)) + next_hop_hex = struct.pack(">I", int(next_hop)) path_attributes_hex += ( - next_hop # IP address of the next hop (4 bytes) + next_hop_hex # IP address of the next hop (4 bytes) ) else: path_attributes_hex = ""