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

Unable to write flows for queues in OVSwitch through Rest API calls

When I am sending this request, I am getting 200 OK but unable to get the flow information from config/operational or switch.

Put URL: http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/0

Body:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
    <priority>2</priority>
    <flow-name>Foo</flow-name>
    <match>
        <ethernet-match>
            <ethernet-type>
                <type>2048</type>
            </ethernet-type>
        </ethernet-match>
        <ipv4-source>10.0.0.1/32</ipv4-source>
        <ipv4-destination>10.0.0.2/32</ipv4-destination>
    </match>
    <table_id>0</table_id>
    <id>0</id>
    <instructions>
        <instruction>
            <order>0</order>
            <apply-actions>
                <action>
                  <order>1</order>
                        <output-action>
                        <output-node-connector>2</output-node-connector>
                    </output-action>
                </action>
                <action>
                    <order>0</order>
                      <set-queue-action>
                        <queue>newqueue2</queue>
                        <queue-id>1</queue-id>
                        </set-queue-action>
                  </action>
            </apply-actions>
        </instruction>
    </instructions>
</flow>