Ask Your Question
0

Added flows are not working

asked 2017-06-09 11:05:06 -0700

badr gravatar image

Hello, I am a beginner in ODL and I am trying to add flows using Postman and apply rules as well. I made a PUT request with following XML file and it gave me 200OK but there wasn't any change. The flow should drop any packet with a certain destination mac address. I used mininet to create the topology :
sudo mn --controller remote,ip=192.168.56.101 --switch ovs,protocols=OpenFlow13 .
When I try to show the flow using ovs-ofctl -O OpenFlow13 dump-flows s1 it appears for few moments then disappears. I tried different versions of odl searched in the documentation but no solution to be found for this problem. I hope you guys are able to help me in this. Thanks in advance.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<strict>false</strict>
<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
                <order>0</order>
                <drop-action/>
            </action>
        </apply-actions>
    </instruction>
</instructions>
<table_id>0</table_id>
<id>15</id>
<cookie_mask>255</cookie_mask>
<installHw>false</installHw>
<match>
    <ethernet-match>
        <ethernet-type>
            <type>2048</type>
        </ethernet-type>
        <ethernet-destination>
            <address>D6:17:9B:48:14:C5</address>
        </ethernet-destination>
    </ethernet-match>
</match>
<hard-timeout>12</hard-timeout>
<cookie>4</cookie>
<idle-timeout>34</idle-timeout>
<flow-name>FooXf4</flow-name>
<priority>45000</priority>
<barrier>false</barrier>

</flow>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-09 16:36:11 -0700

Hi, I'm also new in ODL so i'm not sure, but you could try to remove the timeouts, or incremet their values.

<hard-timeout>12</hard-timeout>
<idle-timeout>34</idle-timeout>
edit flag offensive delete publish link more

Comments

Thanks alot! I doubted before and tried to increase the timers but once I took your advice and removed the timers it worked preperly.

badr ( 2017-06-09 18:30:37 -0700 )edit
Login/Signup to Answer

Stats

Asked: 2017-06-09 11:05:06 -0700

Seen: 28 times

Last updated: Jun 09