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,
@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):