Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword Num keyword Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpLShift AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A copy N/A mock oslo_utils uuidutils neutron.api.rpc.callbacks.consumer registry consumer_reg neutron.api.rpc.callbacks events neutron.api.rpc.callbacks resources neutron.objects.qos policy neutron.objects.qos rule neutron.tests.common.agents l2_extensions neutron.tests.functional.agent.l2 base N/A TEST_POLICY_ID1 a2d72369-4246-4f19-bd3c-af51ec8d70cd N/A TEST_POLICY_ID2 46ebaec0-0570-43ac-82f6-60d2b03168c5 N/A TEST_DSCP_MARK_1 14 N/A TEST_DSCP_MARK_2 30 N/A TEST_DSCP_MARKING_RULE_1 N/A N/A rule QosDscpMarkingRule context None qos_policy_id TEST_POLICY_ID1 id 9f126d84-551a-4dcf-bb01-0e9c0df0c793 dscp_mark TEST_DSCP_MARK_1 N/A TEST_DSCP_MARKING_RULE_2 N/A N/A rule QosDscpMarkingRule context None qos_policy_id TEST_POLICY_ID2 id 7f126d84-551a-4dcf-bb01-0e9c0df0c793 dscp_mark TEST_DSCP_MARK_2 N/A TEST_BW_LIMIT_RULE_1 N/A N/A rule QosBandwidthLimitRule context None qos_policy_id TEST_POLICY_ID1 id 5f126d84-551a-4dcf-bb01-0e9c0df0c793 max_kbps 1000 max_burst_kbps 10 N/A TEST_BW_LIMIT_RULE_2 N/A N/A rule QosBandwidthLimitRule context None qos_policy_id TEST_POLICY_ID2 id fa9128d9-44af-49b2-99bb-96548378ad42 max_kbps 900 max_burst_kbps 9 OVSAgentQoSExtensionTestFramework N/A N/A base OVSAgentTestFramework N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super OVSAgentQoSExtensionTestFramework self setUp N/A N/A N/A N/A self config set_override extensions N/A qos agent N/A N/A N/A self _set_pull_mock N/A N/A N/A self set_test_qos_rules TEST_POLICY_ID1 N/A TEST_BW_LIMIT_RULE_1 TEST_DSCP_MARKING_RULE_1 N/A N/A N/A self set_test_qos_rules TEST_POLICY_ID2 N/A TEST_BW_LIMIT_RULE_2 TEST_DSCP_MARKING_RULE_2 N/A _set_pull_mock N/A N/A self N/A N/A N/A N/A self qos_policies N/A _pull_mock N/A N/A context resource_type resource_id N/A N/A N/A N/A N/A self qos_policies N/A resource_id N/A N/A N/A self pull N/A N/A N/A N/A mock patch neutron.api.rpc.handlers.resources_rpc.ResourcesPullRpcApi.pull start N/A N/A N/A self pull side_effect _pull_mock N/A set_test_qos_rules N/A N/A self policy_id policy_rules N/A N/A N/A This function sets the policy test rules to be exposed. N/A qos_policy N/A N/A policy QosPolicy context None tenant_id N/A N/A uuidutils generate_uuid id policy_id name Test Policy Name description This is a policy for testing purposes shared False rules policy_rules N/A N/A N/A qos_policy obj_reset_changes N/A N/A N/A self qos_policies N/A policy_id qos_policy N/A _create_test_port_dict N/A N/A self policy_id N/A None N/A N/A port_dict N/A N/A N/A super OVSAgentQoSExtensionTestFramework self _create_test_port_dict N/A N/A port_dict N/A qos_policy_id policy_id N/A N/A port_dict N/A network_qos_policy_id None N/A port_dict N/A _get_device_details N/A N/A self port network N/A N/A N/A dev N/A N/A N/A super OVSAgentQoSExtensionTestFramework self _get_device_details port network N/A N/A dev N/A qos_policy_id N/A port N/A qos_policy_id N/A dev N/A _assert_bandwidth_limit_rule_is_set N/A N/A self port rule N/A N/A N/A N/A max_rate burst N/A N/A N/A N/A self agent int_br get_egress_bw_limit_for_port N/A port N/A vif_name N/A N/A N/A self assertEqual max_rate N/A rule max_kbps N/A N/A N/A self assertEqual burst N/A rule max_burst_kbps N/A _assert_bandwidth_limit_rule_not_set N/A N/A self port N/A N/A N/A N/A max_rate burst N/A N/A N/A N/A self agent int_br get_egress_bw_limit_for_port N/A port N/A vif_name N/A N/A N/A self assertIsNone max_rate N/A N/A N/A self assertIsNone burst N/A wait_until_bandwidth_limit_rule_applied N/A N/A self port rule N/A N/A N/A N/A N/A l2_extensions wait_until_bandwidth_limit_rule_applied N/A N/A self agent int_br N/A port N/A vif_name rule N/A _assert_dscp_marking_rule_is_set N/A N/A self port dscp_rule N/A N/A N/A port_num N/A N/A N/A N/A self agent int_br _get_port_ofport N/A port N/A vif_name N/A flows N/A N/A N/A N/A self agent int_br dump_flows_for table 0 in_port N/A str port_num N/A tos_mark N/A N/A l2_extensions extract_mod_nw_tos_action flows N/A N/A N/A self assertEqual N/A N/A dscp_rule dscp_mark 2 tos_mark N/A _assert_dscp_marking_rule_not_set N/A N/A self port N/A N/A N/A port_num N/A N/A N/A N/A self agent int_br _get_port_ofport N/A port N/A vif_name N/A flows N/A N/A N/A N/A self agent int_br dump_flows_for table 0 in_port N/A str port_num N/A tos_mark N/A N/A l2_extensions extract_mod_nw_tos_action flows N/A N/A N/A self assertIsNone tos_mark N/A wait_until_dscp_marking_rule_applied N/A N/A self port dscp_mark N/A N/A N/A N/A N/A l2_extensions wait_until_dscp_marking_rule_applied N/A N/A self agent int_br N/A port N/A vif_name dscp_mark N/A _create_port_with_qos N/A N/A self N/A N/A N/A port_dict N/A N/A self _create_test_port_dict N/A N/A port_dict N/A qos_policy_id TEST_POLICY_ID1 N/A N/A N/A self setup_agent_and_ports N/A port_dict N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A N/A N/A self wait_until_bandwidth_limit_rule_applied port_dict TEST_BW_LIMIT_RULE_1 N/A port_dict N/A N/A TestOVSAgentQosExtension N/A OVSAgentQoSExtensionTestFramework N/A test_port_creation_with_bandwidth_limit N/A N/A self N/A N/A N/A Make sure bandwidth limit rules are set in low level to ports. N/A N/A N/A self setup_agent_and_ports port_dicts N/A N/A self create_test_ports amount 1 policy_id TEST_POLICY_ID1 N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A port N/A self ports N/A N/A N/A N/A self _assert_bandwidth_limit_rule_is_set port TEST_BW_LIMIT_RULE_1 N/A test_port_creation_with_different_bandwidth_limits N/A N/A self N/A N/A N/A Make sure different types of policies end on the right ports. N/A port_dicts N/A N/A self create_test_ports amount 3 N/A N/A N/A port_dicts N/A 0 N/A qos_policy_id TEST_POLICY_ID1 N/A N/A N/A port_dicts N/A 1 N/A qos_policy_id TEST_POLICY_ID2 N/A N/A N/A self setup_agent_and_ports port_dicts N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A N/A N/A self _assert_bandwidth_limit_rule_is_set N/A N/A self ports N/A 0 TEST_BW_LIMIT_RULE_1 N/A N/A N/A self _assert_bandwidth_limit_rule_is_set N/A N/A self ports N/A 1 TEST_BW_LIMIT_RULE_2 N/A N/A N/A self _assert_bandwidth_limit_rule_not_set N/A N/A self ports N/A 2 N/A test_port_creation_with_dscp_marking N/A N/A self N/A N/A N/A Make sure dscp marking rules are set in low level to ports. N/A N/A N/A self setup_agent_and_ports port_dicts N/A N/A self create_test_ports amount 1 policy_id TEST_POLICY_ID1 N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A port N/A self ports N/A N/A N/A N/A self _assert_dscp_marking_rule_is_set port TEST_DSCP_MARKING_RULE_1 N/A test_port_creation_with_different_dscp_markings N/A N/A self N/A N/A N/A Make sure different types of policies end on the right ports. N/A port_dicts N/A N/A self create_test_ports amount 3 N/A N/A N/A port_dicts N/A 0 N/A qos_policy_id TEST_POLICY_ID1 N/A N/A N/A port_dicts N/A 1 N/A qos_policy_id TEST_POLICY_ID2 N/A N/A N/A self setup_agent_and_ports port_dicts N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A N/A N/A self _assert_dscp_marking_rule_is_set N/A N/A self ports N/A 0 TEST_DSCP_MARKING_RULE_1 N/A N/A N/A self _assert_dscp_marking_rule_is_set N/A N/A self ports N/A 1 TEST_DSCP_MARKING_RULE_2 N/A N/A N/A self _assert_dscp_marking_rule_not_set N/A N/A self ports N/A 2 N/A test_simple_port_policy_update N/A N/A self N/A N/A N/A N/A N/A self setup_agent_and_ports port_dicts N/A N/A self create_test_ports amount 1 policy_id TEST_POLICY_ID1 N/A N/A N/A self wait_until_ports_state N/A self ports up True N/A N/A N/A self _assert_dscp_marking_rule_is_set N/A N/A self ports N/A 0 TEST_DSCP_MARKING_RULE_1 N/A policy_copy N/A N/A copy deepcopy N/A N/A self qos_policies N/A TEST_POLICY_ID1 N/A N/A N/A N/A policy_copy rules N/A 0 max_kbps 500 N/A N/A N/A N/A policy_copy rules N/A 0 max_burst_kbps 5 N/A N/A N/A N/A policy_copy rules N/A 1 dscp_mark TEST_DSCP_MARK_2 N/A N/A N/A consumer_reg push N/A resources QOS_POLICY policy_copy N/A events UPDATED N/A N/A N/A self wait_until_bandwidth_limit_rule_applied N/A N/A self ports N/A 0 N/A N/A policy_copy rules N/A 0 N/A N/A N/A self _assert_bandwidth_limit_rule_is_set N/A N/A self ports N/A 0 N/A N/A policy_copy rules N/A 0 N/A N/A N/A self _assert_dscp_marking_rule_is_set N/A N/A self ports N/A 0 TEST_DSCP_MARKING_RULE_2 N/A test_port_qos_disassociation N/A N/A self N/A N/A N/A Test that qos_policy_id set to None will remove all qos rules from
           given port.
         N/A port_dict N/A N/A self _create_port_with_qos N/A N/A port_dict N/A qos_policy_id None N/A N/A N/A N/A self agent port_update None port port_dict N/A N/A N/A self wait_until_bandwidth_limit_rule_applied port_dict None N/A test_port_qos_update_policy_id N/A N/A self N/A N/A N/A Test that change of qos policy id on given port refreshes all its
           rules.
         N/A port_dict N/A N/A self _create_port_with_qos N/A N/A port_dict N/A qos_policy_id TEST_POLICY_ID2 N/A N/A N/A N/A self agent port_update None port port_dict N/A N/A N/A self wait_until_bandwidth_limit_rule_applied port_dict TEST_BW_LIMIT_RULE_2 N/A test_policy_rule_delete N/A N/A self N/A N/A N/A port_dict N/A N/A self _create_port_with_qos N/A policy_copy N/A N/A copy deepcopy N/A N/A self qos_policies N/A TEST_POLICY_ID1 N/A N/A policy_copy rules N/A list N/A N/A N/A consumer_reg push N/A resources QOS_POLICY policy_copy N/A events UPDATED N/A N/A N/A self wait_until_bandwidth_limit_rule_applied port_dict None N/A N/A