From d94f7bd0fb00b98b3f4695a9344c03a894350acc Mon Sep 17 00:00:00 2001 From: Srini Seetharaman Date: Wed, 25 Jun 2014 21:24:41 -0700 Subject: 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 Reviewed-by: TAKAHASHI Minoru Signed-off-by: FUJITA Tomonori --- ryu/lib/ofctl_v1_3.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3