summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/ofctl_v1_0.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py
index 5fe5778d..e75e51a4 100644
--- a/ryu/lib/ofctl_v1_0.py
+++ b/ryu/lib/ofctl_v1_0.py
@@ -302,6 +302,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
@@ -400,7 +401,7 @@ def get_aggregate_flow_stats(dp, waiters, flow=None):
s = {'packet_count': st.packet_count,
'byte_count': st.byte_count,
'flow_count': st.flow_count}
- flows.append(s)
+ flows.append(s)
flows = {str(dp.id): flows}
return flows