Ask Your Question
0

Add Flows in Lithium

asked 2016-03-02 15:04:55 -0700

Laksh0608 gravatar image

Hi all

I am running Opendaylight Controller Lithium version. I tried to add a flow using POSTMAN. I see the entry getting added in the REST but the rules are not getting applied. I followed the following link: https://wiki.opendaylight.org/view/Ed...OpenDaylightOpenFlowPlugin:EndtoEndFlows:Example_Flows

Any help in resolving this will be appreciated.

edit retag flag offensive close merge delete

Comments

1

Please be specific .... If possible paste the input body and output error message

saisujithreddy ( 2016-03-02 20:24:34 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-04 15:39:03 -0700

Laksh0608 gravatar image

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/c...

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>

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2016-03-02 15:04:55 -0700

Seen: 117 times

Last updated: Mar 04 '16