Skip to content

Commit

Permalink
Rename _process_alloc_ae_id to _process_ae_id
Browse files Browse the repository at this point in the history
1. remaning _process_alloc_ae_id to _process_ae_id for better
   naming convention as it does both alloc and dealloc

Change-Id: Iab104d979f3ac9520d29a8bb9a13868cdbd8f063
  • Loading branch information
snmurali committed Jul 15, 2020
1 parent 81a9edd commit c0b75be
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -79,7 +79,7 @@ def _dealloc_ae_id(cls, prouter_name, ae_id, vpg_name):
return dealloc_dict

@classmethod
def _process_alloc_ae_id(cls, db_obj_dict, vpg_name, obj_dict=None):
def _process_ae_id(cls, db_obj_dict, vpg_name, obj_dict=None):
attr_dict = None
alloc_dealloc_dict = {'allocated_ae_id': [], 'deallocated_ae_id': []}
curr_pr_dict = {}
Expand Down Expand Up @@ -394,7 +394,7 @@ def pre_dbe_update(cls, id, fq_name, obj_dict, db_conn, **kwargs):
if not ok:
return ok, res
# Allocate/Deallocate AE-IDs for the attached PIs
ok, res = cls._process_alloc_ae_id(
ok, res = cls._process_ae_id(
db_obj_dict, fq_name[-1], obj_dict)
if not ok:
return ok, res
Expand Down Expand Up @@ -423,7 +423,7 @@ def pre_dbe_delete(cls, id, obj_dict, db_conn):
if obj_dict.get('physical_interface_refs'):
# release ae-ids associated with PIs attached to this VPG
fq_name = obj_dict.get('fq_name')
ok, res = cls._process_alloc_ae_id(obj_dict, fq_name[-1])
ok, res = cls._process_ae_id(obj_dict, fq_name[-1])
if not ok:
return (ok, res, None)
ret_val = res[1]
Expand Down

0 comments on commit c0b75be

Please sign in to comment.