summaryrefslogtreecommitdiffhomepage
path: root/ryu/services/protocols/bgp/speaker.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryu/services/protocols/bgp/speaker.py')
-rw-r--r--ryu/services/protocols/bgp/speaker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/services/protocols/bgp/speaker.py b/ryu/services/protocols/bgp/speaker.py
index 2c823f5d..cfa8be78 100644
--- a/ryu/services/protocols/bgp/speaker.py
+++ b/ryu/services/protocols/bgp/speaker.py
@@ -371,8 +371,8 @@ class BgpProtocol(Protocol, Activity):
reason = notification.reason
self._send_with_lock(notification)
self._signal_bus.bgp_error(self._peer, code, subcode, reason)
- if len(self._localname()):
- LOG.error('Sent notification to %r >> %s' % (self._localname(),
+ if len(self._localname):
+ LOG.error('Sent notification to %r >> %s' % (self._localname,
notification))
self._socket.close()