-
Notifications
You must be signed in to change notification settings - Fork 10
REST API List of OFMStaticFlowEntryManager
API: /wm/staticflowentry/list/all/json
Result:
{
"s1":{
"ipv4_src":"10.0.0.1",
"instructions":[
{
"apply_actions":[
{"output":"2"}
]
}
],
"priority":"101",
"name":"s1",
"ipv4_dst":"10.0.0.2",
"active":"true",
"switch":"00:00:00:00:00:00:00:01",
"eth_type":"0x0800"
},
"drop":{
"priority":"11",
"name":"drop",
"active":"true",
"switch":"00:00:00:00:00:00:00:01"
}
}
API: /wm/staticflowentry/list/{switch}/json
Result:
{
"s1":{
"ipv4_src":"10.0.0.1",
"instructions":[
{
"apply_actions":[
{"output":"2"}
]
}
],
"priority":"101",
"name":"s1",
"ipv4_dst":"10.0.0.2",
"active":"true",
"switch":"00:00:00:00:00:00:00:01",
"eth_type":"0x0800"
},
"drop":{
"priority":"11",
"name":"drop",
"active":"true",
"switch":"00:00:00:00:00:00:00:01"
},
"s4":{
"switch":"00:00:00:00:00:00:00:01",
"name":"s4",
"priority":"1001",
"eth_type":"0x0806",
"arp_spa":"10.0.0.2",
"active":"true",
"instructions":[
{"apply_actions":
[
{"set_field":
{"arp_spa":"10.0.0.3"}
},
{"output":"1"}
]
}
]
}
}
API: /wm/staticflowentry/clear/all/json
Result:
{"result":"All entries are cleared."}
API: /wm/staticflowentry/clear/{switch}/json
Result:
{"result":"All entries are cleared."}
API: /wm/staticflowentry/json
Example: curl -d '{"switch":"00:00:00:00:00:00:00:01","name":"s2","priority":"1001","eth_type":"0x0800","ipv4_dst":"10.0.0.2","active":"true","instructions":[{"apply_actions":[{"output":"1"}]}]}' http://{controller}:8080/wm/staticflowentry/json
Result:
{"result":"Entry pushed: s1"}
Example: curl -X DELETE -d '{"name":"s1"}' http://{controller}:8080/wm/staticflowentry/json
Example: curl http://{controller}:8080/wm/staticflowentry/delete/{name}/json
Result:
{"result":"Entry deleted: s1"}
API: /wm/staticflowentry/reload/all/json
Result:
{"result":"All entries are reloaded to switches."}
API: /wm/staticflowentry/reload/{switch}/json
Result:
{"result":"Entries are reloaded to switch: 00:00:00:00:00:00:00:01"}
OpenIRIS Development Team: contact bjlee@etri.re.kr