from neutron.agent.ovsdb.native import commands as cmd
from neutron.agent.ovsdb.native import connection
from neutron.agent.ovsdb.native import idlutils
-from neutron.i18n import _LE
OPTS = [
seqno)
continue
elif status == txn.ERROR:
- msg = _LE("OVSDB Error: %s") % txn.get_error()
+ msg = _("OVSDB Error: %s") % txn.get_error()
if self.log_errors:
LOG.error(msg)
if self.check_error:
from neutron.db import models_v2
from neutron.extensions import external_net
from neutron.extensions import l3
-from neutron.i18n import _LI, _LE
+from neutron.i18n import _LI
from neutron import manager
from neutron.plugins.common import constants
from neutron.plugins.common import utils as p_utils
device_id=port['device_id'])
if not port['fixed_ips']:
- msg = _LE('Router port must have at least one fixed IP')
+ msg = _('Router port must have at least one fixed IP')
raise n_exc.BadRequest(resource='router', msg=msg)
# Only allow one router port with IPv6 subnets per network id
# Keep the restriction against multiple IPv4 subnets
if len([s for s in subnets if s['ip_version'] == 4]) > 1:
- msg = _LE("Cannot have multiple "
- "IPv4 subnets on router port")
+ msg = _("Cannot have multiple "
+ "IPv4 subnets on router port")
raise n_exc.BadRequest(resource='router', msg=msg)
port.update({'device_id': router.id, 'device_owner': owner})