Re: [nox-dev] Help creating a flow

2010-12-02 Thread Kyriakos Zarifis
Great! thanks for updating. On Thu, Dec 2, 2010 at 5:51 PM, Derek Cormier wrote: > Oh, that's embarrasing! I was using body.port_no instead of body.out_port. > It works now. > > -Derek > > > On 12/03/2010 10:34 AM, Derek Cormier wrote: > >> I registered for flow mod events and the event shows the

Re: [nox-dev] Help creating a flow

2010-12-02 Thread Derek Cormier
Oh, that's embarrasing! I was using body.port_no instead of body.out_port. It works now. -Derek On 12/03/2010 10:34 AM, Derek Cormier wrote: I registered for flow mod events and the event shows the flow being added. I can also see the flow through Open vSwitch. I'm not receiving any errors, s

Re: [nox-dev] Help creating a flow

2010-12-02 Thread Derek Cormier
I registered for flow mod events and the event shows the flow being added. I can also see the flow through Open vSwitch. I'm not receiving any errors, so the request is in the correct format. Could it be a problem with Open vSwitch? Request == request = ofp_stats_request() req

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Derek Cormier
Hmm, the same thing happens using 0x. 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. an

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Derek Cormier
# 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.

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Kyriakos Zarifis
can you paste the code where you build and send your stats request? On Tue, Nov 30, 2010 at 5:48 PM, Derek Cormier 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, s

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Derek Cormier
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 dp

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Kyriakos Zarifis
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 wrote: > Oh, and I forgot to mention that I am sending a flow stats request. > > > On 12/01/

Re: [nox-dev] Help creating a flow

2010-11-30 Thread Derek Cormier
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] =

[nox-dev] Help creating a flow

2010-11-30 Thread Derek Cormier
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, O