neutron/neutron
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 "raise Exception instead of LOG.error on cookie/mask inconsistency" 2017-04-02 11:19:02 +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 Agent common config 2017-03-15 09:52:18 -06:00
common Improve validation of supported QoS rules 2017-04-02 16:33:11 +00:00
conf Merge "Bump default quotas for ports, subnets, and networks" 2017-03-23 11:19:26 +00:00
core_extensions Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07: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 "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
hacking Fix copy-paste error in hacking checks 2017-03-17 16:01:04 -07:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
locale Imported Translations from Zanata 2016-08-19 07:27:43 +00:00
notifiers Merge "Use registry.receives decorator in neutron.notifiers.nova" 2017-03-15 06:27:04 +00:00
objects Merge "Apply QoS policy on network:router_gateway" 2017-04-01 12:57:08 +00:00
pecan_wsgi Use new enginefacade for quota and provisioning blocks 2017-03-29 14:31:03 +00:00
plugins Merge "raise Exception instead of LOG.error on cookie/mask inconsistency" 2017-04-02 11:19:02 +00:00
privileged Do not raise an error deleting neighbour entry 2017-01-26 16:22:20 -05:00
quota Use new enginefacade for quota and provisioning blocks 2017-03-29 14:31:03 +00:00
scheduler Refactor L3 scheduler (unify code paths) 2017-01-26 23:05:06 +00:00
server Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
services Improve validation of supported QoS rules 2017-04-02 16:33:11 +00:00
tests Improve validation of supported QoS rules 2017-04-02 16:33:11 +00:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Spin off context module 2017-03-06 16:25:29 +00:00
manager.py Use is_loaded in manager.init 2017-03-30 14:53:20 +00:00
neutron_plugin_base_v2.py Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
opts.py Agent common config 2017-03-15 09:52:18 -06:00
policy.py Spin off context module 2017-03-06 16:25:29 +00:00
service.py Spin off context module 2017-03-06 16:25:29 +00:00
version.py
worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
wsgi.py Fix some reST field lists in docstrings 2017-03-23 08:50:01 +08:00