]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix extension description and remove unused exception
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 10 Jan 2014 13:04:23 +0000 (05:04 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 10 Jan 2014 13:06:30 +0000 (05:06 -0800)
Change-Id: Id0a40a8decb46e306256196c7fc79d687d4f8075
Closes-Bug: #1267841

neutron/extensions/l3_ext_gw_mode.py

index 073b8209d5814f9ca78240c1bd2316cd235e3801..0de20110d772ec36cae86476e8667056ecf2eec5 100644 (file)
 
 from neutron.api import extensions
 from neutron.api.v2 import attributes as attrs
-from neutron.common import exceptions as qexception
 from neutron.extensions import l3
 
 
-class RouterDNatDisabled(qexception.BadRequest):
-    message = _("DNat is disabled for the router %(router_id)s. Floating IPs "
-                "cannot be associated.")
-
 EXTENDED_ATTRIBUTES_2_0 = {
     'routers': {l3.EXTERNAL_GW_INFO:
                 {'allow_post': True,
@@ -56,7 +51,7 @@ class L3_ext_gw_mode(extensions.ExtensionDescriptor):
     @classmethod
     def get_description(cls):
         return ("Extension of the router abstraction for specifying whether "
-                "SNAT, DNAT or both should occur on the external gateway")
+                "SNAT should occur on the external gateway")
 
     @classmethod
     def get_namespace(cls):