neutron/neutron/tests/unit
Sławek Kapłoński e2226fe373 Improve validation of supported QoS rules
New way of validation of QoS policy can be applied on port/network based on
port_types. It can validate if port can support rule by rule_type and also by
rule parameters or some values of parameters.

For example bandwidth_limit_rule can have parameter "direction" with
possible values "ingress" and "egress". Some of mechanism drivers can support
only one of those directions.

If user will try to apply policy with rule unsupported by port_type then it
will get error message and policy will not be applied.
Such validation is made during:
* port create
* port update
* network update
* QoS rule create
* QoS rule update

Co-Authored-By: Miguel Angel Ajo <majopela@redhat.com>

Implements blueprint qos-rules-validation
Closes-Bug: #1586056

Change-Id: I75bd18b3a1875daa5639dd141fb7bbd6e1c54118
2017-04-02 16:33:11 +00:00
..
agent Merge "Remove stale floating IP addresses from rfp devices" 2017-04-02 03:49:40 +00:00
api Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
callbacks Downgrade callback abortable event log to debug 2017-03-16 13:35:39 -07:00
cmd Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
common Throttle SIGHUPs to keepalived 2017-03-28 03:37:09 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Spin off context module 2017-03-06 16:25:29 +00:00
db Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Merge "Fix call a method of extension class" 2017-04-02 03:26:12 +00:00
hacking Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-11-22 02:15:19 +00:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
notifiers Merge "Remove baremetal notification from nova notifier" 2017-03-15 02:46:20 +00:00
objects Merge "Apply QoS policy on network:router_gateway" 2017-04-01 12:57:08 +00:00
plugins Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
quota TestTrackedResource: register core plugin in directory 2017-03-30 18:05:33 +00:00
scheduler use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
services Improve validation of supported QoS rules 2017-04-02 16:33:11 +00:00
tests Remove recursion from import_modules_recursively 2016-09-30 21:48:50 +00:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
_test_extension_portbindings.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
dummy_plugin.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_manager.py neutron-lib: use CORE from neutron lib constants 2016-12-26 00:56:42 -08:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Spin off context module 2017-03-06 16:25:29 +00:00
test_service.py Fix that api_workers=0 doesn't spawn any api workers 2016-07-29 05:40:05 -04:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Get rid of get_engine() in db/api.py 2016-08-12 15:48:17 +03:00
testlib_api.py TrivialFix: Do not use synchronous_reader argument 2017-03-10 16:37:01 +00:00