from neutron.common import rpc as n_rpc
from neutron.extensions import agent
from neutron import manager
+from neutron.openstack.common.gettextutils import _LE
from neutron.openstack.common import log as logging
from neutron.plugins.common import constants as service_constants
from neutron import policy
plugin = manager.NeutronManager.get_service_plugins().get(
service_constants.L3_ROUTER_NAT)
if not plugin:
- LOG.error(_('No plugin for L3 routing registered to handle '
- 'router scheduling'))
+ LOG.error(_LE('No plugin for L3 routing registered to handle '
+ 'router scheduling'))
msg = _('The resource could not be found.')
raise webob.exc.HTTPNotFound(msg)
return plugin
plugin = manager.NeutronManager.get_service_plugins().get(
service_constants.L3_ROUTER_NAT)
if not plugin:
- LOG.error(_('No plugin for L3 routing registered to handle '
- 'router scheduling'))
+ LOG.error(_LE('No plugin for L3 routing registered to handle '
+ 'router scheduling'))
msg = _('The resource could not be found.')
raise webob.exc.HTTPNotFound(msg)
return plugin