Signed-off-by: Shinpei Muraoka <[email protected]>
---
 doc/source/app/ofctl_rest.rst | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst
index e8c42dd..c31ad5e 100644
--- a/doc/source/app/ofctl_rest.rst
+++ b/doc/source/app/ofctl_rest.rst
@@ -2762,18 +2762,24 @@ Example of set-field action
 
     To set VLAN ID to non-VLAN-tagged frame::
 
-        "actions":[
-            {
-                "type": "PUSH_VLAN",     # Push a new VLAN tag if a input 
frame is non-VLAN-tagged
-                "ethertype": 33024       # Ethertype 0x8100(=33024): IEEE 
802.1Q VLAN-tagged frame
-            },
-            {
-                "type": "SET_FIELD",
-                "field": "vlan_vid",     # Set VLAN ID
-                "value": 4102            # Describe sum of vlan_id(e.g. 6) | 
OFPVID_PRESENT(0x1000=4096)
+        $ curl -X POST -d '{
+            "dpid": 1,
+            "match":{
+                "dl_type": "0x8000"
             },
-            {
-                "type": "OUTPUT",
-                "port": 2
-            }
-        ]
+               "actions":[
+                   {
+                       "type": "PUSH_VLAN",     # Push a new VLAN tag if a 
input frame is non-VLAN-tagged
+                       "ethertype": 33024       # Ethertype 0x8100(=33024): 
IEEE 802.1Q VLAN-tagged frame
+                   },
+                   {
+                       "type": "SET_FIELD",
+                       "field": "vlan_vid",     # Set VLAN ID
+                       "value": 4102            # Describe sum of vlan_id(e.g. 
6) | OFPVID_PRESENT(0x1000=4096)
+                   },
+                   {
+                       "type": "OUTPUT",
+                       "port": 2
+                   }
+               ]
+         }' http://localhost:8080/stats/flowentry/add
-- 
1.9.1


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to