r74207 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74206‎ | r74207 | r74208 >
Date:14:45, 3 October 2010
Author:mark
Status:deferred
Tags:
Comment:
Reset BGP resources when a connection is (re)set, or existing announcements may never get advertised on a reset connection.
Modified paths:
  • /trunk/routing/twistedbgp/src/bgp.py (modified) (history)

Diff [purge]

Index: trunk/routing/twistedbgp/src/bgp.py
@@ -1918,6 +1918,16 @@
19191919 self.advertised = set()
19201920 self.toAdvertise = set()
19211921
 1922+ def completeInit(self, protocol):
 1923+ """
 1924+ Called by FSM when BGP resources should be initialized.
 1925+ """
 1926+
 1927+ BGPPeering.completeInit(self, protocol)
 1928+
 1929+ # Clear the existing set, it may get reused
 1930+ self.advertised = set()
 1931+
19221932 def sendAdvertisements(self):
19231933 """
19241934 Called when the BGP session has been established and is

Status & tagging log