summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/app/ofctl_rest.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py
index bafbb028..89e8fbc3 100644
--- a/ryu/app/ofctl_rest.py
+++ b/ryu/app/ofctl_rest.py
@@ -80,9 +80,15 @@ LOG = logging.getLogger('ryu.app.ofctl_rest')
# modify all matching flow entries
# POST /stats/flowentry/modify
#
+# modify flow entry strictly matching wildcards and priority
+# POST /stats/flowentry/modify_strict
+#
# delete all matching flow entries
# POST /stats/flowentry/delete
#
+# delete flow entry strictly matching wildcards and priority
+# POST /stats/flowentry/delete_strict
+#
# delete all flow entries of the switch
# DELETE /stats/flowentry/clear/<dpid>
#
@@ -301,8 +307,12 @@ class StatsController(ControllerBase):
cmd = dp.ofproto.OFPFC_ADD
elif cmd == 'modify':
cmd = dp.ofproto.OFPFC_MODIFY
+ elif cmd == 'modify_strict':
+ cmd = dp.ofproto.OFPFC_MODIFY_STRICT
elif cmd == 'delete':
cmd = dp.ofproto.OFPFC_DELETE
+ elif cmd == 'delete_strict':
+ cmd = dp.ofproto.OFPFC_DELETE_STRICT
else:
return Response(status=404)