Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

How to add Flows to Queue created on OVS switch using REST API?

Hi,

I am trying to add flows to the queues created on the OVS switch using REST API(http://10.200.8.30:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1/) by passing Xml in the body..

Xml as follows: <flow> <flow-name>flow1</flow-name> <match> <in-port>1</in-port> </match> <instructions> <instruction> <order>0</order> <write-actions> <action> <order>0</order> <set-queue-action> <queue-id>1</queue-id> </set-queue-action> </action> </write-actions> </instruction> <instruction> <order>1</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>NORMAL</output-node-connector> </output-action> </action> <action> <order>1</order> <set-queue-action> <queue-id>1</queue-id> </set-queue-action> </action> </apply-actions> </instruction> </instructions> <id>1</id> <table_id>0</table_id> </flow>

But flows are not added.. Can any one tell me the exact Xml format that as to be sent with url to add flows.

Thanks & Regards.