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]

Try with this Body:

    {"node": 
    {"type": "OF", 
     "id": "00:00:00:00:00:00:00:01"
     }, 
"name": "s1flow", 
"etherType": "0x0800", 
"nwDst": "11.0.56.3/24", 
"intalledInHw": "false", 
"actions": ["FLOOD"], 
"priority": "503"
}

Now i also recommend trying to use the RESTCONF so i also provide u the Flow in RESTCONF format

URL:
http://192.168.2.111:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/1/flow/101

Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
    <priority>2</priority>
    <flow-name>s1flow</flow-name>
    <match>
        <ethernet-match>
            <ethernet-type>
                <type>2048</type>
            </ethernet-type>
        </ethernet-match>
        <ipv4-destination>11.0.56.3/24</ipv4-destination>
    </match>
    <id>101</id>
    <table_id>1</table_id>
    <instructions>
        <instruction>
            <order>0</order>
            <apply-actions>
                <action>
                   <order>0</order>
                   <output-node-connector>FLOOD</output-node-connector>
                </action>
            </apply-actions>
        </instruction>
    </instructions>
</flow>

Try with this Body:

    {"node": 
    {"type": "OF", 
     "id": "00:00:00:00:00:00:00:01"
     }, 
"name": "s1flow", 
"etherType": "0x0800", 
"nwDst": "11.0.56.3/24", 
"intalledInHw": "false", 
"actions": ["FLOOD"], 
"priority": "503"
}

Now i also recommend trying to use the RESTCONF so i also provide u the Flow in RESTCONF format

URL:
http://192.168.2.111:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/1/flow/101

Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
    <priority>2</priority>
<priority>503</priority>
    <flow-name>s1flow</flow-name>
    <match>
        <ethernet-match>
            <ethernet-type>
                <type>2048</type>
            </ethernet-type>
        </ethernet-match>
        <ipv4-destination>11.0.56.3/24</ipv4-destination>
    </match>
    <id>101</id>
    <table_id>1</table_id>
    <instructions>
        <instruction>
            <order>0</order>
            <apply-actions>
                <action>
                   <order>0</order>
                   <output-node-connector>FLOOD</output-node-connector>
                </action>
            </apply-actions>
        </instruction>
    </instructions>
</flow>