Fixed play.py broken by the "big cleanup change"
[integration/test.git] / 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 = ""