Browse Source

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
changes/56/465056/1
Roey Chen 4 years ago
parent
commit
64699728bd
  1. 6
      neutron_dynamic_routing/extensions/bgp.py

6
neutron_dynamic_routing/extensions/bgp.py

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

Loading…
Cancel
Save