]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Apply black formatting for frr-reload.py 12111/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 11 Oct 2022 19:38:30 +0000 (22:38 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 12 Oct 2022 15:06:20 +0000 (15:06 +0000)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 63f99a91c8371bb5e03d5dc59d4ec0f197aefc90)

tools/frr-reload.py

index 5839fd69a4017d2933378a11e2d43b23bffd6483..c71b4132bfc18e98a4fc0d88a9c6e864f3fb0b84 100755 (executable)
@@ -890,7 +890,7 @@ def bgp_remove_neighbor_cfg(lines_to_del, del_nbr_dict):
         ):
             if ctx_keys[0] in del_nbr_dict:
                 for nbr in del_nbr_dict[ctx_keys[0]]:
-                    re_nbr_pg = re.search('neighbor (\S+) .*peer-group (\S+)', line)
+                    re_nbr_pg = re.search("neighbor (\S+) .*peer-group (\S+)", line)
                     nb_exp = "neighbor %s .*" % nbr
                     if not re_nbr_pg:
                         re_nb = re.search(nb_exp, line)
@@ -997,7 +997,7 @@ def delete_move_lines(lines_to_add, lines_to_del):
             # 'no neighbor peer [interface] peer-group <>' is in lines_to_del
             # copy the neighbor and look for all config removal lines associated
             # to neighbor and delete them from the lines_to_del
-            re_nbr_pg = re.search('neighbor (\S+) .*peer-group (\S+)', line)
+            re_nbr_pg = re.search("neighbor (\S+) .*peer-group (\S+)", line)
             if re_nbr_pg:
                 if ctx_keys[0] not in del_nbr_dict:
                     del_nbr_dict[ctx_keys[0]] = list()