Deployment Guide

92
{
"dpid": 133571005559288,
"cookie": 1,
"cookie_mask": 1,
"table_id": 10,
"idle_timeout": 30,
"hard_timeout": 30,
"priority": 1,
"flags": 1,
"_name" : "vlan10",
"cmd" : "add",
"mask" : "0",
"port" : "any",
"group" : "any",
"match":
{
"in_port" : "10",
"vlan_vid" : "2"
},
"instructions":
[
{
"goto":
{
"table_id":"20"
}
}
]
}
1) To fetch the switch description we can use the below cURL command on controller console.
COMMAND: curl -X GET http://localhost:8080/stats/flow/{dpId}
Where dpId 133571005559288 (We will get this from above command’s response)
2) Use the below commands on controller as per their usage:
a) FLOW ENTRY ADD COMMAND:
curl -i -v -X POST -d '@flow_vlan_add.json'
http://localhost:8080/stats/flowentry/add
Here flow_vlan_add.json is a json file to create a vlan flow entry
b) FETCHING FLOWS USING MATCH FILTER COMMAND:
curl -i -v -X POST -d '@flow_vlan_stats.json'
http://localhost:8080/stats/aggregateflow/{dpid}
Here flow_vlan_stats.json is a JSON file contains the filter parameters and values
c) DELETE ALL FLOW ENTRIES COMMAND:
curl -i -v -X DELETE
http://localhost:8080/stats/flowentry/clear/{dpid}
d) GROUP ENTRY ADD COMMAND:
curl -i -v -X POST -d '@group_l2_add.json'
http://localhost:8080/stats/groupentry/add
Here group_l2_add.json is a JSON file contains the parameters to create a group
e) DELETE GROUP COMMAND:
curl -i -v -X POST -d '@group_delete.json'
http://localhost:8080/stats/groupentry/delete