Sorry about the delay, somehow I overlooked this, On Mon, 17 Mar 2014 13:37:11 +0800 Wei-Li Tang <[email protected]> wrote:
> if ev.state == MAIN_DISPATCHER: > + MULTIPLE_CONNS = False Can you use lowercases? You can check naming style at: http://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=Naming#Naming > + if dp.id in self.dps: > + LOG.warning('multiple connections from %s', > dpid_to_str(dp.id)) > + MULTIPLE_CONNS = True > + > self._register(dp) > switch = self._get_switch(dp.id) > LOG.debug('register %s', switch) > - self.send_event_to_observers(event.EventSwitchEnter(switch)) > + > + # Do not send EventSwitchEnter while multiple connections > occured. > + if not MULTIPLE_CONNS: > + self.send_event_to_observers(event.EventSwitchEnter(switch)) > > if not self.link_discovery: > return ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
