summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-06-13 15:57:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-06-20 12:04:53 +0900
commitb1ec9ed457a30663f775cb2f73d008b8649519f8 (patch)
treed81e60b18f60fb26968564ecb8e8b697b9a5c11d
parent56aff9adf393bf02058e8e0a571dd3054e98ac0a (diff)
BGPSpeaker: Fix BGP state string conversion
The constants BGP_FSM_* are str type values and not callable. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/peer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py
index 2a0e2a9f..2c6e3898 100644
--- a/ryu/services/protocols/bgp/peer.py
+++ b/ryu/services/protocols/bgp/peer.py
@@ -2000,8 +2000,8 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
# Open/Notification messages are currently handled by protocol and
# nothing is done inside peer, so should not see them here.
raise ValueError('Peer does not support handling of %s'
- ' message during % state' %
- (msg, self.state.bgp_state()))
+ ' message during %s state' %
+ (msg, self.state.bgp_state))
def _handle_err_sor_msg(self, afi, safi):
# Check if ERR capability is enabled for this peer.