Re: [Ryu-devel] Refresh mac_to_port table

2016-12-30 Thread Munther Numan
12 PM To: Munther Numan Cc: Ryu-devel Subject: Re: [Ryu-devel] Refresh mac_to_port table Hi You can spawn a thread to do that: from ryu.lib import hub def __init__(self, *args, **kwargs): # init something... hub.spawn(self.clear_mac_to_port) def clear_mac_to_port():

Re: [Ryu-devel] Refresh mac_to_port table

2016-12-29 Thread Yi Tseng
Hi You can spawn a thread to do that: from ryu.lib import hub def __init__(self, *args, **kwargs): # init something... hub.spawn(self.clear_mac_to_port) def clear_mac_to_port(): while True: self.mac_to_port = {} hub.sleep(T) 2016-12-29 17:13 GMT+08:00 Munthe

[Ryu-devel] Refresh mac_to_port table

2016-12-29 Thread Munther Numan
Dear Colleagues , I hope you're fine and well , I would like to ask you if you have any idea about how to refresh or clear all the content for mac_to_port table in every T second . Thank you , Happy New Year , Best Regards Munther Numan Master Student Faculty of Engineering University