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

I was able to resolve the issue. The problem was I wasn't setting the priority right and also the ID was incorrect. Thank you! :)

If anybody needs help in adding flows, here is a reference to it. It works fine on Lithium! I am adding a flow entry to drop packets from 10.0.0.3 IP. Using POSTMAN PUT: http://192.168.56.102:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/6

CONTROLLER_IP : 192.168.56.102 Switch : openflow:1

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

Body: <flow xmlns="urn:opendaylight:flow:inventory"> <priority>200</priority> <flow-name>Foo</flow-name> <match> <ethernet-match> <ethernet-type> <type>2048</type>

        </ethernet-type>

    </ethernet-match>
    <ipv4-destination>10.0.0.3/32</ipv4-destination>

</match>
<id>6</id>
<table_id>0</table_id>
<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
                <order>0</order>
                <drop-action/>

            </action>

        </apply-actions>


    </instruction>


</instructions>

</flow>