diff options
author | Yuji Oshima <yuji.oshima0x3fd@gmail.com> | 2014-11-28 17:18:46 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-11-30 22:13:05 +0900 |
commit | df42ea0dc0eaa4e237e30f5d9409a711f843ecc2 (patch) | |
tree | aee539d5d8bf08e1b2c044da6310ccb38348e0c7 | |
parent | d72ff0a55069c30fdac8e8d2fe2ba5d59aed0927 (diff) |
bmp: bug fix of peer bgp ID in BMP Message
Ryu BGP sets self-BGP ID as Peer BGP ID in BMP Message.
Signed-off-by: Yuji Oshima <yuji.oshima0x3fd@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/bgp/bmp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/services/protocols/bgp/bmp.py b/ryu/services/protocols/bgp/bmp.py index c899b5b6..4fbbecb6 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) |