Merge "L3: Add in missing translation"
This commit is contained in:
commit
eb27f0be52
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
|
from neutron._i18n import _
|
||||||
from neutron.common import _deprecate
|
from neutron.common import _deprecate
|
||||||
from neutron.db import db_base_plugin_v2
|
from neutron.db import db_base_plugin_v2
|
||||||
from neutron.db.models import l3_attrs
|
from neutron.db.models import l3_attrs
|
||||||
@ -61,8 +62,8 @@ class ExtraAttributesMixin(object):
|
|||||||
self._ensure_extra_attr_model(context, router_db)
|
self._ensure_extra_attr_model(context, router_db)
|
||||||
router_db['extra_attributes'].update({key: to_db(value)})
|
router_db['extra_attributes'].update({key: to_db(value)})
|
||||||
return
|
return
|
||||||
raise RuntimeError("Tried to set a key '%s' that doesn't exist in "
|
raise RuntimeError(_("Tried to set a key '%s' that doesn't exist "
|
||||||
"the extra attributes table." % key)
|
"in the extra attributes table.") % key)
|
||||||
|
|
||||||
db_base_plugin_v2.NeutronDbPluginV2.register_dict_extend_funcs(
|
db_base_plugin_v2.NeutronDbPluginV2.register_dict_extend_funcs(
|
||||||
l3.ROUTERS, ['_extend_extra_router_dict'])
|
l3.ROUTERS, ['_extend_extra_router_dict'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user