mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
tools: Apply black formatting for frr-reload.py
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
8bcbee1999
commit
63f99a91c8
@ -890,7 +890,7 @@ def bgp_remove_neighbor_cfg(lines_to_del, del_nbr_dict):
|
|||||||
):
|
):
|
||||||
if ctx_keys[0] in del_nbr_dict:
|
if ctx_keys[0] in del_nbr_dict:
|
||||||
for nbr in del_nbr_dict[ctx_keys[0]]:
|
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
|
nb_exp = "neighbor %s .*" % nbr
|
||||||
if not re_nbr_pg:
|
if not re_nbr_pg:
|
||||||
re_nb = re.search(nb_exp, line)
|
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
|
# 'no neighbor peer [interface] peer-group <>' is in lines_to_del
|
||||||
# copy the neighbor and look for all config removal lines associated
|
# copy the neighbor and look for all config removal lines associated
|
||||||
# to neighbor and delete them from the lines_to_del
|
# 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 re_nbr_pg:
|
||||||
if ctx_keys[0] not in del_nbr_dict:
|
if ctx_keys[0] not in del_nbr_dict:
|
||||||
del_nbr_dict[ctx_keys[0]] = list()
|
del_nbr_dict[ctx_keys[0]] = list()
|
||||||
|
Loading…
Reference in New Issue
Block a user