Ask Your Question
0

flows in controller but not in CPqD switch

asked 2015-05-20 03:02:51 -0700

eugenen gravatar image

updated 2015-05-20 03:09:03 -0700

Hi. Using ODL Helium-SR3 on the localhost and CPqD ofsoftswitch13 on the virtual. I'm trying to install a couple of simple flows. I can see them in the config but not in the switch. Observations with Wireshark and verbose logging on switch shows following:

  1. After handshaking 3 FLOW_MOD messages issued by controller and installed to the Table 0. As far as I understand it needs for LLDP discovery.
  2. No more FLOW_MOD messages issued by controller. Only different kind of stats requests observed and they demonstrate absence of flow s in all tables except Table 0.

What can be a reason of such behavior?

edit retag flag offensive close merge delete

Comments

@eugenen could you please add details (url, data etc) for the flow.

subhash ( 2015-05-20 03:57:39 -0700 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-05-20 07:54:40 -0700

eugenen gravatar image

Everything is a trivial.

REST: curl -i -v -u admin:admin -H "Content-type: application/json" -X PUT -d @flow_vlan.json http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:xxxxx/table/10/flow/1

enter code here{
"flow":{
    "strict":"false",
    "match":{
        "vlan-match":{
            "vlan-id":{
                "vlan-id":"10",
                "vlan-id-present":"true"
            }

        },
        "in-port":"1"
    },
    "instructions":{
        "instruction":{
            "order":"0",
            "go-to-table":{
                "table_id":"20"
            }

        }

    },
    "table_id":"10",
    "id":"1",
    "cookie_mask":"255",
    "hard-timeout":"0",
    "cookie":"1",
    "idle-timeout":"0",
    "flow-name":"vlan1",
    "priority":"2"
}

}

edit flag offensive delete publish link more
0

answered 2015-05-20 08:05:19 -0700

adibrastegarnia gravatar image

I have the same problem. The flow can be added successfully in the config mode but it is not added to operational mode. This question asked before as well but there is no response yet

edit flag offensive delete publish link more
0

answered 2015-05-20 09:26:35 -0700

jamoluhrsen gravatar image

Hi,

if you see the flow in config store, but never see the flow mod on the wire sent to the switch, then maybe there is some internal error on the controller. Can you look in the karaf.log file for anything obvious?

we have some automation that uses CPQD and pushes flows that works.

The specific XML used in that test case above is here, if you want to try it:

<flow xmlns="urn:opendaylight:flow:inventory">
    <strict>false</strict>
    <hard-timeout>0</hard-timeout>
    <idle-timeout>0</idle-timeout>
    <instructions>
        <instruction>
            <order>0</order>
            <apply-actions>
                <action>
                    <group-action>
                        <group-id>1</group-id>
                    </group-action>
                    <order>1</order>
                </action>
            </apply-actions>
        </instruction>
    </instructions>
    <table_id>0</table_id>
    <id>1</id>
    <match>
        <ethernet-match>
            <ethernet-type>
                <type>2048</type>
            </ethernet-type>
        </ethernet-match>
        <ipv4-destination>10.0.10.1/32</ipv4-destination>
    </match>
    <flow-name>forward</flow-name>
    <priority>2</priority>
</flow>
edit flag offensive delete publish link more

Comments

Yes, I looked at logs and see RPC Transmit calls but not sure that it FLOW_ADD/MOD not MULTIPART. Thak you for example, will test it ASAP.

eugenen ( 2015-05-20 10:09:28 -0700 )edit
Login/Signup to Answer

Stats

Asked: 2015-05-20 03:02:51 -0700

Seen: 188 times

Last updated: May 20 '15

Related questions