Fixed play.py broken by the "big cleanup change" 55/32555/3
authorJozef Behran <jbehran@cisco.com>
Thu, 14 Jan 2016 10:10:27 +0000 (11:10 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 14 Jan 2016 11:13:36 +0000 (11:13 +0000)
Change-Id: Ifc8150825e14e262eef272f0fd18f56ae746917b
Signed-off-by: Jozef Behran <jbehran@cisco.com>
tools/fastbgp/play.py

index cd0ce016ac5dc5a9aa6b10c8ffe30c5af5897f95..1d96f184b9fb7c747a1077ec96c87bdc7acd5ea0 100755 (executable)
@@ -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 = ""