]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove unused *AlreadyAttached exceptions
authorMatt Riedemann <mriedem@us.ibm.com>
Thu, 8 Aug 2013 21:24:43 +0000 (14:24 -0700)
committerMatt Riedemann <mriedem@us.ibm.com>
Thu, 8 Aug 2013 21:24:43 +0000 (14:24 -0700)
This patch simply removes two exceptions which are not being used.

Closes-Bug: #1210276

Change-Id: I5a3412160f49f6e37f3d9182ce4d4a59b1d7bc09

neutron/common/exceptions.py
neutron/plugins/nicira/common/exceptions.py

index 68c73f50bb2369fad0bb8c067c8ed41bb3c25af6..63ff13894d601b9b8ed7a724b5c67391f7aed92a 100644 (file)
@@ -178,12 +178,6 @@ class NoNetworkAvailable(ResourceExhausted):
                 "No tenant network is available for allocation.")
 
 
-class AlreadyAttached(Conflict):
-    message = _("Unable to plug the attachment %(att_id)s into port "
-                "%(port_id)s for network %(net_id)s. The attachment is "
-                "already plugged into port %(att_port_id)s")
-
-
 class SubnetMismatchForPort(Conflict):
     message = _("Subnet on port %(port_id)s does not match "
                 "the requested subnet %(subnet_id)s")
index c18102440fa915af0fe3f60bc4ee739a00b6140d..0c34010406a5fc3719382f0693b9cc0afd72b211 100644 (file)
@@ -48,12 +48,6 @@ class NvpNoMorePortsException(NvpPluginException):
                 "Maximum number of ports reached")
 
 
-class NvpPortAlreadyAttached(q_exc.Conflict):
-    message = _("Unable to plug an interface into the port %(port_id)s "
-                "for network %(net_id)s. This interface is already plugged "
-                "into port %(att_port_id)s")
-
-
 class NvpNatRuleMismatch(NvpPluginException):
     message = _("While retrieving NAT rules, %(actual_rules)s were found "
                 "whereas rules in the (%(min_rules)s,%(max_rules)s) interval "