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:
ISHIDA Wataru 2015-01-21 14:03:09 +09:00 committed by FUJITA Tomonori
parent e3e07209e3
commit 611ffbe5a6

View File

@ -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)