diff --git a/neutron/agent/ovsdb/impl_idl.py b/neutron/agent/ovsdb/impl_idl.py index 8e237302b4b..ba601d8d8de 100644 --- a/neutron/agent/ovsdb/impl_idl.py +++ b/neutron/agent/ovsdb/impl_idl.py @@ -88,7 +88,7 @@ class Transaction(api.Transaction): attempts = 0 while True: if attempts > 0 and self.timeout_exceeded(): - raise RuntimeError("OVS transaction timed out") + raise RuntimeError(_("OVS transaction timed out")) attempts += 1 # TODO(twilson) Make sure we don't loop longer than vsctl_timeout txn = idl.Transaction(self.api.idl) diff --git a/neutron/common/utils.py b/neutron/common/utils.py index 64e0bb3f0f0..c50731a4ca1 100644 --- a/neutron/common/utils.py +++ b/neutron/common/utils.py @@ -314,7 +314,7 @@ def is_cidr_host(cidr): plain IP addresses specifically to avoid ambiguity. """ if '/' not in str(cidr): - raise ValueError("cidr doesn't contain a '/'") + raise ValueError(_("cidr doesn't contain a '/'")) net = netaddr.IPNetwork(cidr) if net.version == 4: return net.prefixlen == n_const.IPv4_BITS