From: Sumit Naiksatam Date: Fri, 19 Aug 2011 18:02:53 +0000 (-0700) Subject: Changing exception name to QosNotFound. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7d11fe01f1ae815dae7ac8b17c1dae16684bb207;p=openstack-build%2Fneutron-build.git Changing exception name to QosNotFound. --- diff --git a/quantum/plugins/cisco/common/cisco_exceptions.py b/quantum/plugins/cisco/common/cisco_exceptions.py index 472b6647f..a50e2c86b 100644 --- a/quantum/plugins/cisco/common/cisco_exceptions.py +++ b/quantum/plugins/cisco/common/cisco_exceptions.py @@ -90,7 +90,7 @@ class VlanIDNotAvailable(exceptions.QuantumException): message = _("No available Vlan ID found") -class QoSLevelNotFound(exceptions.QuantumException): +class QosNotFound(exceptions.QuantumException): message = _("QoS level %(qos_id)s could not be found " \ "for tenant %(tenant_id)s") diff --git a/quantum/plugins/cisco/l2network_plugin.py b/quantum/plugins/cisco/l2network_plugin.py index 21fd16fd0..6a0f7a568 100644 --- a/quantum/plugins/cisco/l2network_plugin.py +++ b/quantum/plugins/cisco/l2network_plugin.py @@ -379,7 +379,7 @@ class L2Network(QuantumPluginBase): try: qos_level = self._get_qos_level(tenant_id, qos_id) except Exception, excp: - raise cexc.QoSLevelNotFound(tenant_id=tenant_id, + raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id) return qos_level @@ -400,7 +400,7 @@ class L2Network(QuantumPluginBase): try: qos_level = self._get_qos_level(tenant_id, qos_id) except Exception, excp: - raise cexc.QoSLevelNotFound(tenant_id=tenant_id, + raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id) associations = qos_level[const.QOS_LEVEL_ASSOCIATIONS] if len(associations) > 0: @@ -416,7 +416,7 @@ class L2Network(QuantumPluginBase): try: qos_level = self._get_qos_level(tenant_id, qos_id) except Exception, excp: - raise cexc.QoSLevelNotFound(tenant_id=tenant_id, + raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id) qos_level[const.QOS_LEVEL_NAME] = new_name return qos_level @@ -565,7 +565,7 @@ class L2Network(QuantumPluginBase): """Return a QoS level based on the ID""" qos_level = self._qos_levels.get(qos_id) if not qos_level: - raise cexc.QoSLevelNotFound(tenant_id=tenant_id, + raise cexc.QosNotFound(tenant_id=tenant_id, qos_id=qos_id) return qos_level