Ryu BGP sets self-BGP ID as Peer BGP ID in BMP Message.
Signed-off-by: Yuji Oshima <[email protected]>
---
ryu/services/protocols/bgp/bmp.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ryu/services/protocols/bgp/bmp.py
b/ryu/services/protocols/bgp/bmp.py
index c899b5b..4fbbecb 100644
--- a/ryu/services/protocols/bgp/bmp.py
+++ b/ryu/services/protocols/bgp/bmp.py
@@ -112,7 +112,7 @@ class BMPClient(Activity):
peer_distinguisher = 0
peer_as = peer._neigh_conf.remote_as
- peer_bgp_id = self._core_service.router_id
+ peer_bgp_id = peer.protocol.recv_open_msg.bgp_identifier
timestamp = peer.state._established_time
local_address = peer.host_bind_ip
@@ -146,7 +146,7 @@ class BMPClient(Activity):
peer_type = bmp.BMP_PEER_TYPE_GLOBAL
peer_as = peer._neigh_conf.remote_as
- peer_bgp_id = self._core_service.router_id
+ peer_bgp_id = peer.protocol.recv_open_msg.bgp_identifier
peer_address, _ = peer.protocol._remotename
return bmp.BMPPeerDownNotification(bmp.BMP_PEER_DOWN_REASON_UNKNOWN,
@@ -168,7 +168,7 @@ class BMPClient(Activity):
peer_distinguisher = 0
peer_as = peer._neigh_conf.remote_as
- peer_bgp_id = self._core_service.router_id
+ peer_bgp_id = peer.protocol.recv_open_msg.bgp_identifier
peer_address, _ = peer.protocol._remotename
bgp_update = peer._construct_update(path)
--
1.7.9.5
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel