Ask Your Question
0

Action string for the forwaring to all ports

asked 2014-12-05 02:00:08 -0700

updated 2014-12-05 02:00:55 -0700

I am using ADSAL rest api to install the flow, I want to install the flow to forward the packet to all the ports except the ingress port, but I am not able to create the flow.

Following is the rest header and body for the call:

URL    
http://192.168.2.111:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/s1flow

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": ["OUTPUT=ALL"],   I tried with value = all, flood, Flood
    "priority": "503"
    }

Response: ERROR code 400
Invalid Configuration (Output port ALL is not valid for this switch)

please let me know, If I am missing in this rest call to create a flood flow.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-05 11:21:12 -0700

Moderators

updated 2014-12-05 11:23:15 -0700

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>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>
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-12-05 02:00:08 -0700

Seen: 400 times

Last updated: Dec 05 '14