From f00952b0afc2ac0daf1e2486b93e9044fdbce84b Mon Sep 17 00:00:00 2001 From: Yuichi Ito Date: Mon, 7 Apr 2014 09:31:11 +0900 Subject: [PATCH] igmplib: Fix a problem that querier stops sending a query message When QUERY timeout expires, a variable for flooding is overwritten unexpectedly. So querier stops sending a query message any longer. This patch fixes the problem. Signed-off-by: Yuichi Ito Signed-off-by: FUJITA Tomonori --- ryu/lib/igmplib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/lib/igmplib.py b/ryu/lib/igmplib.py index 1171da3b..9b3dc49a 100644 --- a/ryu/lib/igmplib.py +++ b/ryu/lib/igmplib.py @@ -353,7 +353,7 @@ class IgmpQuerier(IgmpBase): res_pkt.add_protocol(res_igmp) res_pkt.serialize() - actions = [parser.OFPActionOutput(ofproto.OFPP_FLOOD)] + flood = [parser.OFPActionOutput(ofproto.OFPP_FLOOD)] while True: # reset reply status. @@ -363,7 +363,7 @@ class IgmpQuerier(IgmpBase): # send a general query to the host that sent this message. self._do_packet_out( - self._datapath, res_pkt.data, send_port, actions) + self._datapath, res_pkt.data, send_port, flood) hub.sleep(igmp.QUERY_RESPONSE_INTERVAL) # QUERY timeout expired.