Fix exception message for DuplicateBgpPeerIpException

Exception message was located under '_message' field of the exception
object, instead of the expected 'message' field.

TrivialFix

Change-Id: I4243bc7d08973d4753141ce1047913af4d16c525
This commit is contained in:
Roey Chen 2017-05-16 05:31:12 -07:00
parent 0d97dfbe6f
commit 64699728bd
1 changed files with 3 additions and 3 deletions

View File

@ -150,9 +150,9 @@ class NetworkNotBound(n_exc.NotFound):
class DuplicateBgpPeerIpException(n_exc.Conflict): class DuplicateBgpPeerIpException(n_exc.Conflict):
_message = _("BGP Speaker %(bgp_speaker_id)s is already configured to " message = _("BGP Speaker %(bgp_speaker_id)s is already configured to "
"peer with a BGP Peer at %(peer_ip)s, it cannot peer with " "peer with a BGP Peer at %(peer_ip)s, it cannot peer with "
"BGP Peer %(bgp_peer_id)s.") "BGP Peer %(bgp_peer_id)s.")
class InvalidBgpPeerMd5Authentication(n_exc.BadRequest): class InvalidBgpPeerMd5Authentication(n_exc.BadRequest):