From b6cb39704fd2ed461d5f3d2239aa46d9a0729718 Mon Sep 17 00:00:00 2001 From: Yuichi Ito Date: Mon, 6 Jan 2014 16:46:34 +0900 Subject: [PATCH] ofctl_rest: fix delete_flow_entry Signed-off-by: Yuichi Ito Signed-off-by: FUJITA Tomonori --- ryu/app/ofctl_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)