Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword Str If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword Str If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword Str If CompareEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Num decorator_list ClassDef bases NameLoad body Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If CompareNotEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad For NameStore ListLoad Str Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr keyword NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr keyword NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad Str Str Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str keyword NameLoad keyword Str keyword Str keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad Str Str Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str keyword NameLoad keyword Str keyword Str keyword Str keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Str AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Str keyword Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call NameLoad Num Num body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str BinOpMod Str NameLoad keyword NameLoad keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call NameLoad Num Num body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str BinOpMod Str NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Str keyword NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A commands N/A logging N/A os N/A sys libs config_libs libs utils_libs libs verify_libs main N/A N/A N/A N/A N/A test N/A test_gbp_pc_func N/A N/A N/A N/A test test_gbp_pc_func_1 0 N/A N/A N/A N/A test cleanup tc_name TESTCASE_GBP_PC_FUNC_1 N/A N/A N/A N/A test test_gbp_pc_func_2 0 N/A N/A N/A N/A test cleanup tc_name TESTCASE_GBP_PC_FUNC_2 N/A N/A N/A N/A test test_gbp_pc_func_3 0 N/A N/A N/A N/A test cleanup tc_name TESTCASE_GBP_PC_FUNC_3 N/A N/A N/A N/A test test_gbp_pc_func_4 0 N/A N/A N/A N/A test cleanup tc_name TESTCASE_GBP_PC_FUNC_4 N/A N/A N/A test cleanup N/A N/A N/A utils_libs report_results test_gbp_pc_func test_results.txt N/A N/A N/A sys exit 1 N/A test_gbp_pc_func N/A object N/A N/A N/A N/A logging basicConfig format %(asctime)s [%(levelname)s] %(name)s - %(message)s level N/A logging WARNING N/A _log N/A N/A logging getLogger __name__ N/A cmd rm /tmp/test_gbp_pc_func.log N/A N/A N/A commands getoutput cmd N/A hdlr N/A N/A logging FileHandler /tmp/test_gbp_pc_func.log N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)s %(message)s N/A N/A N/A hdlr setFormatter formatter N/A N/A N/A _log addHandler hdlr N/A N/A N/A _log setLevel N/A logging INFO N/A N/A N/A _log setLevel N/A logging DEBUG __init__ N/A N/A self N/A N/A N/A 
        Init def
         N/A N/A N/A N/A self _log info 
## START OF GBP POLICY_CLASSIFIER FUNCTIONALITY TESTSUITE
 N/A N/A self gbpcfg N/A N/A config_libs Gbp_Config N/A N/A self gbpverify N/A N/A verify_libs Gbp_Verify N/A N/A self cls_name demo_pc N/A N/A self act_name demo_pa N/A cleanup N/A N/A self tc_name N/A N/A N/A N/A tc_name N/A N/A N/A N/A N/A self _log info N/A %s: FAILED tc_name N/A obj N/A rule classifier action N/A N/A N/A N/A N/A self gbpcfg gbp_del_all_anyobj obj N/A test_gbp_pc_func_1 N/A N/A self N/A N/A N/A N/A N/A N/A self _log info 
############################################################
TESTCASE_GBP_PC_FUNC_1: CREATE/VERIFY/DELETE/VERIFY a POLICY CLASSIFIER with DEFAULT ATTRIB VALUE
TEST_STEPS::
Create Policy Classifier Object,default params
Verify the attributes & value, show & list cmds
Delete Policy Classifier using Name
Verify that PC has got deleted, show & list cmds
Recreate Policy Classifier Object inorder to test Delete using UUID
Delete using UUID
Verify that PC has got deleted, show & list cmds
##############################################################
 N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier with default attrib vals##
 N/A cls_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 classifier N/A self cls_name N/A N/A cls_uuid 0 N/A N/A N/A N/A N/A self _log info N/A 
## Step 1: Create Classifier Passed, UUID == %s
 cls_uuid N/A N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 4A: Verify Classifier using -list cmd N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 0 N/A self cls_name cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 4A: Verify Classifier using -list option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 4B: Verify Classifier using -show cmd N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 N/A self cls_name id cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 4B: Verify Classifier using -show option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 3: Delete Classifier using name  ## N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier N/A self cls_name N/A N/A N/A N/A N/A self _log info N/A 
## Step 3: Delete Classifier using Name == %s, Passed N/A self cls_name N/A N/A N/A N/A N/A self _log info 
## Step 3: Delete Classifier using Name == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 0 N/A self cls_name cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 3A: Verify Classifier is Deleted using -list option == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 N/A self cls_name id cls_uuid shared False 0 N/A N/A N/A N/A N/A self _log info 
## Step 3B: Verify Classifier is Deleted using -show option == Failed N/A 0 N/A cls_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 classifier N/A self cls_name N/A cls_uuid N/A N/A N/A N/A N/A self _log info 
## Step 4: Re-created a Policy Classifier with default inorder to delete with ID N/A N/A N/A N/A self _log info 
## Step 5: Delete Classifier using UUID  ## N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier cls_uuid N/A N/A N/A N/A N/A self _log info N/A 
## Step 5: Delete Classifier Passed using UUID == %s cls_uuid N/A N/A N/A N/A N/A self _log info 
##  Step 5: Delete Classifier using UUID == Failed N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 0 N/A self cls_name cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
##  Step 5A: Verify Classifier is Deleted using -list option == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 N/A self cls_name id cls_uuid shared False 0 N/A N/A N/A N/A N/A self _log info 
## Step 5B: Verify Classifier is Deleted using -show option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 5: Delete of Policy Classifier using UUID == Passed N/A N/A N/A N/A N/A self _log info 
## Step 6: Recreate of Policy Classifier using Default == Failed N/A 0 N/A N/A N/A N/A self _log info 
## TESTCASE_GBP_PC_FUNC_1: PASSED N/A test_gbp_pc_func_2 N/A N/A self N/A N/A N/A N/A N/A N/A self _log info 
############################################################
TESTCASE_GBP_PC_FUNC_2: UPDATE/VERIFY/DELETE/VERIFY EACH ATTRIB of a POLICY CLASSIFIER
TEST_STEP::
Create Policy Classifier using Default param values
Update Each the Polciy Classifier's editable params one at a time
Verify the Policy Classifier's attributes & values, show & list cmds
Delete the Policy Classifier
Verify Policy Classifier successfully deleted
##############################################################
 N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier with default attrib vals##
 N/A cls_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 classifier N/A self cls_name N/A N/A cls_uuid 0 N/A N/A N/A N/A N/A self _log info N/A 
## Step 1: Create Classifier Passed, UUID == %s
 cls_uuid N/A N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 2: Update Policy Classifier attributes one at a time %s ## N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 2 classifier cls_uuid name grppol_pc 0 N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's attribute Name, Failed N/A 0 N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 2 classifier cls_uuid protocol tcp 0 N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's attribute Protocol, Failed N/A 0 N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 2 classifier cls_uuid direction bi 0 N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's attribute Direction, Failed N/A 0 N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 2 classifier cls_uuid port_range 22:1022 0 N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's attribute Port Range, Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 0 grppol_pc cls_uuid tcp bi 22:1022 0 N/A N/A N/A N/A N/A self _log info 
## Step 2A: Verify Policy Classifier Updated Attributes using -list option == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 grppol_pc id cls_uuid protocol tcp port_range 22:1022 direction bi 0 N/A N/A N/A N/A N/A self _log info 
## Step 2B: Verify Policy Classifier Updated Attributes using -show option == Failed N/A 0 N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier cls_uuid N/A N/A N/A N/A N/A self _log info N/A 
## Step 3: Deleted the Classifier == %s
 cls_uuid N/A N/A N/A N/A N/A self _log info 
## Step 3: Delete Classifier using Name == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 grppol_pc id cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 3B: Verify Classifier is Deleted using -show option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## TESTCASE_GBP_PC_FUNC_2: PASSED N/A test_gbp_pc_func_3 N/A N/A self N/A N/A N/A N/A N/A N/A self _log info 
############################################################
TESTCASE_GBP_PC_FUNC_3: UPDATE/VERIFY/DELETE/VERIFY ALL ATTRIB of a POLICY CLASSIFIER @ ONCE 
TEST_STEP::
Create Policy Classifier using Default param values
Update All the Polciy Classifier's editable params at one shot
Verify the Policy Classifier's attributes & values, show & list cmds
Delete the Policy Classifier
Verify Policy Classifier successfully deleted
##############################################################
 N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier with default attrib vals ##
 N/A cls_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 classifier N/A self cls_name N/A N/A cls_uuid 0 N/A N/A N/A N/A N/A self _log info N/A 
## Step 1: Create Classifier Passed, UUID == %s
 cls_uuid N/A N/A N/A N/A N/A self _log info 
## Step 1: Create Classifier == Failed N/A 0 N/A N/A N/A N/A self _log info 
###########################################
## Step 2: Update Policy Classifier Attributes ##
## protocol, port-range,name,direction,description ##
#################################################
 N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 2 classifier cls_uuid name grppol_pc protocol tcp direction bi port_range 22:1022 description 'For devstack demo' N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's Attributes name,protocol,port-range,name,direction,description, Passed N/A N/A N/A N/A N/A self _log info 
## Step 2: Updating Policy Classifier's Attributes name,protocol,port-range,name,direction,description, Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 0 grppol_pc cls_uuid tcp 22:1022 bi 0 N/A N/A N/A N/A N/A self _log info 
## Step 2A: Verify Policy Classifier Updated Attributes using -list option == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 grppol_pc id cls_uuid protocol tcp direction bi port_range 22:1022 description For devstack demo 0 N/A N/A N/A N/A N/A self _log info 
## Step 2B: Verify Policy Classifier Updated Attributes using -show option == Failed N/A 0 N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier grppol_pc 0 N/A N/A N/A N/A N/A self _log info 
## Step 3: Delete Classifier using Name == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 grppol_pc id cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 3B: Verify Classifier is Deleted using -show option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## TESTCASE_GBP_PC_FUNC_3: PASSED N/A test_gbp_pc_func_4 N/A N/A self N/A N/A N/A N/A N/A N/A self _log info 
############################################################
TESTCASE_GBP_PC_FUNC_4: CREATE/SHARE/DELETE/ POLICY CLASSIFIER among MULTIPLE POLICY RULES 
TEST_STEP::
Create and Verify Policy Classifier with valued attributes
Create multiple(n=10) Policy Rules referencing the same Policy Classifier
Verify the Policy Classifier is referenced in all configured Policy Rules
Delete the Policy Classifier, verify it's deletion fails until all Policy Rules are deleted
Verify Policy Classifier successfully deleted
##############################################################
 N/A N/A N/A N/A self _log info 
## Step 0: Creating a Policy Action needed for this test
 N/A act_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 action N/A self act_name N/A N/A act_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Testcase_gbp_pc_func_4: ABORTED
 N/A N/A N/A os _exit 1 N/A N/A N/A N/A self _log info 
## Step 1: Create and Verify Classifier with valued attrib ##
 N/A cls_uuid N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 classifier N/A self cls_name protocol tcp direction bi port_range 22:1022 description 'For devstack demo' N/A N/A cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 1A: Create Classifier == Failed N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 N/A self cls_name id cls_uuid protocol tcp direction bi port_range 22:1022 description For devstack demo 0 N/A N/A N/A N/A N/A self _log info 
## Step 1B: Verify Policy Classifier Attributes using -show option == Failed N/A 0 N/A N/A N/A N/A self _log info 
## Step 2: Create Multiple Policy Rules, each referencing the same classifier ##
 N/A n N/A range 1 11 N/A N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 1 rule N/A grppol_pr_%s n classifier cls_uuid action act_uuid 0 N/A N/A N/A N/A N/A self _log info N/A 
## Step 2A: Policy Rule grppol_pr_%s creation, Failed n N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_policy_verify_all 1 rule N/A grppol_pr_%s n policy_classifier_id cls_uuid policy_actions act_uuid 0 N/A N/A N/A N/A N/A self _log info N/A 
## Step 2B: Policy Rule grppol_pr_%s referencing same classifier, Failed ##
 n N/A 0 N/A N/A N/A N/A self _log info 
## Step 3: Delete Policy Classifier and Policy Rule and verify deletion fails ## N/A i N/A range 1 11 N/A N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 3A: Referenced Policy Classifier's deletion DID NOT fail ## N/A 0 N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 rule N/A grppol_pr_%s i 0 N/A N/A N/A N/A N/A self _log info 
## Step 3B: Referencing Policy Rule's deletion, Failed ## N/A 0 N/A N/A N/A N/A self _log info 
## Step 4: Deletion of Policy Classifier, all referencing Policy Rules have been deleted ## N/A N/A N/A N/A N/A self gbpcfg gbp_policy_cfg_all 0 classifier cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 4A: Policy Classifier's deletion, Failed ## N/A 0 N/A N/A N/A N/A N/A self gbpverify gbp_classif_verify 1 grppol_pc id cls_uuid 0 N/A N/A N/A N/A N/A self _log info 
## Step 4B: Verify Classifier is Deleted, Failed N/A 0 N/A N/A N/A N/A self _log info 
## TESTCASE_GBP_PC_FUNC_4: PASSED N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main