Hi, > I am using, "switch_enter_handler" to install specific set of rules for > each switch (unique for each switch) when the switch is connected for > the 1st time. I would like to know whether this is the correct approach, > or is there any better approaches to install rules in the switches > pro-actively.
Ryu do not have the function for your wish. You use the ryu.controller.dpset.EventDP, your application can judge connection of switch. But ryu.controller.dpset.EventDP can not judge first connection of switch. Please judge the first connection in your application. Please try to reference the following. http://ryu.readthedocs.org/en/latest/ryu_app_api.html#ryu-controller-dpset-eventdp Thanks, On 2016年04月04日 19:23, Windhya Rankothge wrote: > Dear all, > > I have a custom mininet topology with 5 switches and 7 hosts. I am > running this topology in a 64GB machine with 12 cores. > > My controller script proactively install specific set of rules for each > switch (unique for each switch) when the switch is connected for the > 1st time. So actually controller will install rules at the initial > startup time. I am using following class: > > @set_ev_cls(EventSwitchEnter) > def _ev_switch_enter_handler(self,ev): > > I have a "if-else" code part in the controller, if controller see a > particular switch for the 1st time, it install rules, else it prints the > message "switch reconnected". > > My observation is, I get several "switch reconnected" messages with > along default debug messages "multiple connections from switch ID". > > I am using, "switch_enter_handler" to install specific set of rules for > each switch (unique for each switch) when the switch is connected for > the 1st time. I would like to know whether this is the correct approach, > or is there any better approaches to install rules in the switches > pro-actively. > > Best Regards, > Windhya Rankothge, > Universitat Pompeu Fabra, > Barcelona. > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
