diff options
author | Srini Seetharaman <srini.seetharaman@gmail.com> | 2014-06-25 21:24:41 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-06-29 21:24:45 +0900 |
commit | d94f7bd0fb00b98b3f4695a9344c03a894350acc (patch) | |
tree | e32071ce855d250f7ee549623a770aae848a8b81 | |
parent | 858aec4cef4f3f99493d6f8ad981db5123ec397a (diff) |
Initializing the variable 's' so that the get_desc_stats() call does not cause an exceptions when there are no messages
Signed-off-by: Srini Seetharaman <srini.seetharaman@gmail.com>
Reviewed-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/ofctl_v1_3.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py index 4c14e06b..c63c4e18 100644 --- a/ryu/lib/ofctl_v1_3.py +++ b/ryu/lib/ofctl_v1_3.py @@ -577,6 +577,7 @@ def get_desc_stats(dp, waiters): stats = dp.ofproto_parser.OFPDescStatsRequest(dp, 0) msgs = [] send_stats_request(dp, stats, waiters, msgs) + s = {} for msg in msgs: stats = msg.body |