summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/services/protocols/bgp/peer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py
index 2f25d3dc..0779206f 100644
--- a/ryu/services/protocols/bgp/peer.py
+++ b/ryu/services/protocols/bgp/peer.py
@@ -455,7 +455,7 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
Update appropriate counters and set appropriate timers.
"""
- assert rr_msg.TYPE_CODE == BGP_MSG_ROUTE_REFRESH
+ assert rr_msg.type == BGP_MSG_ROUTE_REFRESH
self._protocol.send(rr_msg)
LOG.debug('RouteRefresh %s>> %s' %
(self._neigh_conf.ip_address, rr_msg))