Hmm, the same thing happens using 0xffffffff. Yeah, something must be wrong with the request since I can guarantee the flow is added before it's sent.

On 12/01/2010 11:40 AM, Kyriakos Zarifis wrote:
hm, this looks good to me.... Still, it seems as though something is wrong with the request. and also looks the same as some code that I have that's working.. the only difference is that I'm using
body.match.wildcards = 0xffffffff
although that shouldn't make a difference. But if you want you can try it out

On Tue, Nov 30, 2010 at 5:56 PM, Derek Cormier <derek.corm...@lab.ntt.co.jp <mailto:derek.corm...@lab.ntt.co.jp>> wrote:

    # Set up the OpenFlow stats request packet.
    request = ofp_stats_request()
    request.header.xid = c_htonl(long(25))
    request.type = OFPST_FLOW
    request.flags = 0
    body = ofp_flow_stats_request()
    body.port_no = OFPP_NONE
    body.table_id = 0xff     # All flow tables
    body.match.wildcards = OFPFW_ALL
    request.header.length = len(request.pack()) + len(body.pack())

    # Send the request.
    logger.info <http://logger.info>("Requesting flows from switch id:
    %d." % dpid)
    self.send_openflow_command(dpid, request.pack() + body.pack())


    On 12/01/2010 10:55 AM, Kyriakos Zarifis wrote:
    can you paste the code where you build and send your stats request?

    On Tue, Nov 30, 2010 at 5:48 PM, Derek Cormier
    <derek.corm...@lab.ntt.co.jp
    <mailto:derek.corm...@lab.ntt.co.jp>> wrote:

        Interesting. I used Open vSwitch's ovs-ofctl dump-flows and I
        can see the flow. I am waiting three seconds after installing
        the flow before requesting the flow stats, so that should be
        enough time...

        -Derek


        On 12/01/2010 10:40 AM, Kyriakos Zarifis wrote:
        Can you look at the flowtable using dpctl to verify that it
        is empty?
        ( could it be the timing? are you sending the request right
        after you send the flowmod?)

        On Tue, Nov 30, 2010 at 5:33 PM, Derek Cormier
        <derek.corm...@lab.ntt.co.jp
        <mailto:derek.corm...@lab.ntt.co.jp>> wrote:

            Oh, and I forgot to mention that I am sending a flow
            stats request.


            On 12/01/2010 10:30 AM, Derek Cormier wrote:

                Hello,

                I am trying to add a flow to a switch in my Nox
                component. After the switch joins the datapath, I
                create a simple flow to test that it works:

                flow = dict()
                flow[NW_PROTO] = UDP_PROTOCOL
                self.install_datapath_flow(dpid, flow,
                OFP_FLOW_PERMANENT, OFP_FLOW_PERMANENT,
                [[OFPAT_OUTPUT, [0, OFPP_CONTROLLER]]])

                I then receive a flow stats reply event in my
                handler, but event.flows = [] and event.flowcount =
                0. Do you know what I am doing wrong?

                Thank you,
                Derek



                _______________________________________________
                nox-dev mailing list
                nox-dev@noxrepo.org <mailto:nox-dev@noxrepo.org>
                http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org





            _______________________________________________
            nox-dev mailing list
            nox-dev@noxrepo.org <mailto:nox-dev@noxrepo.org>
            http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org




        _______________________________________________
        nox-dev mailing list
        nox-dev@noxrepo.org <mailto:nox-dev@noxrepo.org>
        http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org




    _______________________________________________
    nox-dev mailing list
    nox-dev@noxrepo.org <mailto:nox-dev@noxrepo.org>
    http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org



_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to