@@ -708,14 +708,15 @@ def test_PbhHashCreationDeletionWithDependencies(self, testlog):
708708 self .dvs_pbh .verify_pbh_hash_field_count (1 )
709709 self .dvs_pbh .verify_pbh_hash_count (1 )
710710 finally :
711+ # PBH hash field
712+ pbhlogger .info ("Remove PBH hash field: {}" .format (PBH_HASH_FIELD_NAME ))
713+ self .dvs_pbh .remove_pbh_hash_field (PBH_HASH_FIELD_NAME )
714+ self .dvs_pbh .verify_pbh_hash_field_count (1 )
715+
711716 # PBH hash
712717 pbhlogger .info ("Remove PBH hash: {}" .format (PBH_HASH_NAME ))
713718 self .dvs_pbh .remove_pbh_hash (PBH_HASH_NAME )
714719 self .dvs_pbh .verify_pbh_hash_count (0 )
715-
716- # PBH hash field
717- pbhlogger .info ("Remove PBH hash field: {}" .format (PBH_HASH_FIELD_NAME ))
718- self .dvs_pbh .remove_pbh_hash_field (PBH_HASH_FIELD_NAME )
719720 self .dvs_pbh .verify_pbh_hash_field_count (0 )
720721
721722 def test_PbhRuleCreationDeletionWithDependencies (self , testlog ):
@@ -767,24 +768,26 @@ def test_PbhRuleCreationDeletionWithDependencies(self, testlog):
767768 self .dvs_acl .verify_acl_rule_count (1 )
768769
769770 finally :
771+ # PBH table
772+ pbhlogger .info ("Remove PBH table: {}" .format (PBH_TABLE_NAME ))
773+ self .dvs_pbh .remove_pbh_table (PBH_TABLE_NAME )
774+ self .dvs_acl .verify_acl_table_count (1 )
775+
770776 # PBH rule
771777 pbhlogger .info ("Remove PBH rule: {}" .format (PBH_RULE_NAME ))
772778 self .dvs_pbh .remove_pbh_rule (PBH_TABLE_NAME , PBH_RULE_NAME )
773779 self .dvs_acl .verify_acl_rule_count (0 )
774-
775- # PBH table
776- pbhlogger .info ("Remove PBH table: {}" .format (PBH_TABLE_NAME ))
777- self .dvs_pbh .remove_pbh_table (PBH_TABLE_NAME )
778780 self .dvs_acl .verify_acl_table_count (0 )
779781
782+ # PBH hash field
783+ pbhlogger .info ("Remove PBH hash field: {}" .format (PBH_HASH_FIELD_NAME ))
784+ self .dvs_pbh .remove_pbh_hash_field (PBH_HASH_FIELD_NAME )
785+ self .dvs_pbh .verify_pbh_hash_field_count (1 )
786+
780787 # PBH hash
781788 pbhlogger .info ("Remove PBH hash: {}" .format (PBH_HASH_NAME ))
782789 self .dvs_pbh .remove_pbh_hash (PBH_HASH_NAME )
783790 self .dvs_pbh .verify_pbh_hash_count (0 )
784-
785- # PBH hash field
786- pbhlogger .info ("Remove PBH hash field: {}" .format (PBH_HASH_FIELD_NAME ))
787- self .dvs_pbh .remove_pbh_hash_field (PBH_HASH_FIELD_NAME )
788791 self .dvs_pbh .verify_pbh_hash_field_count (0 )
789792
790793
0 commit comments