diff options
author | Yuichi Ito <ito.yuichi0@gmail.com> | 2014-04-07 09:31:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-04-07 10:14:41 +0900 |
commit | f00952b0afc2ac0daf1e2486b93e9044fdbce84b (patch) | |
tree | b031fe49a9c494a94a351a6100d6d856c1394fbc /ryu/lib/igmplib.py | |
parent | 792c75c6a1b363e29a8892d90320217353ea912f (diff) |
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 <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'ryu/lib/igmplib.py')
-rw-r--r-- | ryu/lib/igmplib.py | 4 |
1 files 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. |