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

0

Could you suggest a very basic XML and API for adding a flow in Helium version?

asked 2015-08-27 22:51:03 -0700

Sasivenkat gravatar image

Hi, I have a mininet setup integrated with my ODL(Helium version). I have created 2 hosts and a switch from mininet. I have tried some of the REST API to hit ODL for creating clows with actions like flood. I am able to see the flow entry been made in mininet "sudo ovs-ofctl dump-flows s1" . But my "h1 ping h2" is not working. Can u suggest me a basic API for adding a flow to make h1 ping h2?// Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-08-27 23:24:08 -0700

updated 2015-08-27 23:24:54 -0700

if the topology is like this:

h1 <----------> s1 <--------------> h2

then the flood flow at s1 is sufficient to provide the communication.

flow :

url :

http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/111

Body:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow
    xmlns="urn:opendaylight:flow:inventory">
    <instructions>
        <instruction>
           <order>0</order>
            <apply-actions>
                <action>
                  <order>0</order>
                    <output-action>
                      <output-node-connector>FLOOD</output-node-connector>
                  </output-action>
                </action>
            </apply-actions>
        </instruction>
    </instructions>
    <table_id>0</table_id>
    <id>111</id>
    <cookie_mask>10</cookie_mask>
    <installHw>false</installHw>
    <hard-timeout>0</hard-timeout>
    <cookie>10</cookie>
    <idle-timeout>0</idle-timeout>
    <flow-name>FloodFlow</flow-name>
    <priority>2</priority>
    <barrier>false</barrier>
</flow>
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-27 22:51:03 -0700

Seen: 39 times

Last updated: Aug 27 '15