]> git.puffer.fish Git - matthieu/frr.git/commitdiff
quagga reload failure (Tested on VX)
authorDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 16 May 2016 14:36:17 +0000 (14:36 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 16 May 2016 14:36:17 +0000 (14:36 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-10974

ctx_keys needs to be a tuple and not a list but there was one spot
where I created a tmp copy of the ctx_keys but failed to convert it to
tuple

tools/quagga-reload.py

index 45f579c4e32a97db5761582aee22ad9451c8d15e..27fc3830c664ba2ef3a076eec18b049827db927f 100755 (executable)
@@ -487,7 +487,7 @@ def ignore_delete_re_add_lines(lines_to_add, lines_to_del):
                 swpx_peergroup = "neighbor %s peer-group %s" % (swpx, peergroup)
                 found_add_swpx_interface = line_exist(lines_to_add, ctx_keys, swpx_interface)
                 found_add_swpx_peergroup = line_exist(lines_to_add, ctx_keys, swpx_peergroup)
-                tmp_ctx_keys = list(ctx_keys)
+                tmp_ctx_keys = tuple(list(ctx_keys))
 
                 if not found_add_swpx_peergroup:
                     tmp_ctx_keys = list(ctx_keys)