Ask is moving to Stack Overflow and! 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

Hi , xml structure is depends on your need . If you want to add match (IP/MAC),you could add.

Go through these links ,

link text

link text

link text

here is simple xml with match as inport and action as output.

In restconf you can see SAL-FLOW API ,There you can use this xml structure to add flow .Once you done it , check the flow using ovs-ofctl dump-flows s1 , It will be reflected .

For device -> openflow:1 , if Inport is 3 (Match) , Action will be Output to 1

.image description

You can also use http://<ctrl-addr>:8080/restconf/config/opendaylight-inventory:nodes/node/<node-id>/table/<table-#&gt; flow="" <flow-#&gt;<="" p="">

  • Accept: application/xml
  • Content-Type: application/xml

For example:

PUT http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/127 . You will get the xml parameters for this API in the above link .

Thanks, -Karthik