summaryrefslogtreecommitdiffhomepage
path: root/doc/source/app/ofctl_rest.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/app/ofctl_rest.rst')
-rw-r--r--doc/source/app/ofctl_rest.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst
index 1cba2f65..c69692c5 100644
--- a/doc/source/app/ofctl_rest.rst
+++ b/doc/source/app/ofctl_rest.rst
@@ -2512,6 +2512,33 @@ Delete a meter entry
"meter_id": 1
}' http://localhost:8080/stats/meterentry/delete
+Modify role
+--------------------
+
+ modify the role of the switch.
+
+ Usage:
+
+ ======= =========================
+ Method POST
+ URI /stats/role
+ ======= =========================
+
+ Request message body:
+
+ =========== ============================ ========= =================
+ Attribute Description Example Default
+ =========== ============================ ========= =================
+ dpid Datapath ID (int) 1 (Mandatory)
+ role One of OFPCR_ROLE_*(string) "MASTER" OFPCR_ROLE_EQUAL
+ =========== ============================ ========= =================
+
+ Example of use::
+
+ $ curl -X POST -d '{
+ "dpid": 1,
+ "role": "MASTER"
+ }' http://localhost:8080/stats/role
Support for experimenter multipart
==================================