mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-23 17:42:16 +01:00
bgp: remove unnecessary bgp update construction
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
e3e07209e3
commit
611ffbe5a6
@ -89,7 +89,6 @@ class BMPClient(Activity):
|
||||
def on_adj_rib_in_changed(self, data):
|
||||
peer = data['peer']
|
||||
path = data['received_route']
|
||||
update_msg = peer._construct_update(path)
|
||||
msg = self._construct_route_monitoring(peer, path)
|
||||
self._send(msg)
|
||||
|
||||
@ -98,11 +97,6 @@ class BMPClient(Activity):
|
||||
msg = self._construct_peer_up_notification(peer)
|
||||
self._send(msg)
|
||||
|
||||
for path in peer._adj_rib_in.itervalues():
|
||||
update_msg = peer._construct_update(path)
|
||||
msg = self._construct_route_monitoring(peer, path)
|
||||
self._send(msg)
|
||||
|
||||
def on_adj_down(self, data):
|
||||
peer = data['peer']
|
||||
msg = self._construct_peer_down_notification(peer)
|
||||
@ -237,7 +231,6 @@ class BMPClient(Activity):
|
||||
self._send(msg)
|
||||
|
||||
for path in peer._adj_rib_in.itervalues():
|
||||
update_msg = peer._construct_update(path)
|
||||
msg = self._construct_route_monitoring(peer, path)
|
||||
self._send(msg)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user