Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
StormLiangMS committed Aug 10, 2022
1 parent 7446098 commit 8993397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sonic-bgpcfgd/bgpcfgd/managers_allow_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __generate_names(deployment_id, community_value, neighbor_type):
:param community_value: community, which we want to use to filter prefixes
:return: a dictionary with names
"""
if neighbor_type == '':
if not neighbor_type:
if community_value == BGPAllowListMgr.EMPTY_COMMUNITY:
community_name = BGPAllowListMgr.EMPTY_COMMUNITY
else:
Expand Down Expand Up @@ -673,7 +673,7 @@ def __get_peer_group_to_restart(deployment_id, pg_2_rm, rm_2_call, neighbor_type
:rm_2_call: a dictionary: key - name of a route-map, value - name of a route-map call defined for the route-map
"""
ret = set()
if neighbor_type == '':
if not neighbor_type:
target_allow_list_prefix = 'ALLOW_LIST_DEPLOYMENT_ID_%d_V' % deployment_id
else:
target_allow_list_prefix = 'ALLOW_LIST_DEPLOYMENT_ID_%d_NEIGHBOR_%s_V' % (deployment_id, neighbor_type)
Expand Down

0 comments on commit 8993397

Please sign in to comment.