summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYuichi Ito <ito.yuichi0@gmail.com>2014-01-06 16:46:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-01-06 20:34:28 +0900
commitb6cb39704fd2ed461d5f3d2239aa46d9a0729718 (patch)
tree7d451a6c23afc651760b67a2bff66ecf1f8179c9
parent53e41b6c4e2c3b27e07fd76c06b4d1f1dde8b4b9 (diff)
ofctl_rest: fix delete_flow_entry
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/app/ofctl_rest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py
index ce6a78b6..b9656b19 100644
--- a/ryu/app/ofctl_rest.py
+++ b/ryu/app/ofctl_rest.py
@@ -230,7 +230,7 @@ class StatsController(ControllerBase):
if dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
ofctl_v1_0.delete_flow_entry(dp)
- elif dp.ofproto.OFP_VERSION == ofproto_v1_2.OFPVERSION:
+ elif dp.ofproto.OFP_VERSION == ofproto_v1_2.OFP_VERSION:
ofctl_v1_2.mod_flow_entry(dp, {}, dp.ofproto.OFPFC_DELETE)
elif dp.ofproto.OFP_VERSION == ofproto_v1_3.OFP_VERSION:
ofctl_v1_3.mod_flow_entry(dp, {}, dp.ofproto.OFPFC_DELETE)