from neutron import context as nctx
from neutron.db import db_base_plugin_v2
-from neutron.i18n import _LI
+from neutron.i18n import _LE, _LI
from neutron.openstack.common import log as logging
from neutron.plugins.ml2.drivers.arista import exceptions as arista_exc
LOG.error(msg)
raise arista_exc.AristaSevicePluginConfigError(msg=msg)
if cfg.CONF.l3_arista.get('mlag_config'):
- if cfg.CONF.l3_arista.get('use_vrf'):
- #This is invalid/unsupported configuration
- msg = _('VRFs are not supported MLAG config mode')
- LOG.error(msg)
- raise arista_exc.AristaSevicePluginConfigError(msg=msg)
if cfg.CONF.l3_arista.get('secondary_l3_host') == '':
msg = _('Required option secondary_l3_host is not set')
LOG.error(msg)
LOG.info(_LI('Results of execution on Arista EOS: %s'), ret)
except Exception:
- msg = (_('Error occured while trying to execute '
- 'commands %(cmd)s on EOS %(host)s') %
+ msg = (_LE("Error occured while trying to execute "
+ "commands %(cmd)s on EOS %(host)s"),
{'cmd': full_command, 'host': server})
LOG.exception(msg)
raise arista_exc.AristaServicePluginRpcError(msg=msg)