Quality of Service support via NSPs
QoS support for PTs inside PTG, as 2 new NSP param types. The new NSP param types, qos_maxrate and qos_burstrate, map to the Neutron QoS Policy resource, which then gets associated to a QoS bandwith limit rule with a certain maximum rate and/or burst rate (in Kbps) set. Change-Id: I4a15daf5e0edd76d2d436eac6fdfb6b9f64992b2
This commit is contained in:
@@ -18,6 +18,7 @@ import webob.exc
|
||||
|
||||
import mock
|
||||
from neutron.api import extensions
|
||||
from neutron.api.rpc.callbacks.producer import registry
|
||||
from neutron import context
|
||||
from neutron.db import api as db_api
|
||||
from neutron import manager
|
||||
@@ -351,6 +352,8 @@ class GroupPolicyDbTestCase(GroupPolicyDBTestBase,
|
||||
|
||||
extensions.append_api_extensions_path(
|
||||
gbpservice.neutron.extensions.__path__)
|
||||
service_plugins['flavors_plugin_name'] =\
|
||||
'neutron.services.flavors.flavors_plugin.FlavorsPlugin'
|
||||
super(GroupPolicyDbTestCase, self).setUp(
|
||||
plugin=core_plugin, ext_mgr=ext_mgr,
|
||||
service_plugins=service_plugins
|
||||
@@ -373,6 +376,7 @@ class GroupPolicyDbTestCase(GroupPolicyDBTestBase,
|
||||
|
||||
def tearDown(self):
|
||||
self._unset_notification_mocks()
|
||||
registry.clear()
|
||||
super(GroupPolicyDbTestCase, self).tearDown()
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class GroupPolicyMappingDbTestCase(tgpdb.GroupPolicyDbTestCase,
|
||||
test_l3.L3NatTestCaseMixin):
|
||||
|
||||
def setUp(self, core_plugin=None, l3_plugin=None, gp_plugin=None,
|
||||
service_plugins=None, sc_plugin=None):
|
||||
service_plugins=None, sc_plugin=None, qos_plugin=None):
|
||||
if not gp_plugin:
|
||||
gp_plugin = DB_GP_PLUGIN_KLASS
|
||||
if not service_plugins:
|
||||
@@ -53,6 +53,8 @@ class GroupPolicyMappingDbTestCase(tgpdb.GroupPolicyDbTestCase,
|
||||
'flavors_plugin.FlavorsPlugin',
|
||||
'servicechain_plugin': sc_plugin or SC_PLUGIN_KLASS}
|
||||
service_plugins['l3_plugin_name'] = l3_plugin or "router"
|
||||
if qos_plugin:
|
||||
service_plugins['qos_plugin_name'] = qos_plugin
|
||||
super(GroupPolicyMappingDbTestCase, self).setUp(
|
||||
core_plugin=core_plugin, gp_plugin=gp_plugin,
|
||||
service_plugins=service_plugins
|
||||
|
||||
Reference in New Issue
Block a user