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, so the request is in the correct format. Could it be a 
problem with Open vSwitch?


 Request ==
request = ofp_stats_request()
request.header.xid = 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())

self.send_openflow_command(dpid, request.pack() + body.pack())

___
nox-dev mailing list
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


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
derek.corm...@lab.ntt.co.jpwrote:

 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,
 so the request is in the correct format. Could it be a problem with Open
 vSwitch?

  Request ==
 request = ofp_stats_request()
 request.header.xid = 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())

 self.send_openflow_command(dpid, request.pack() + body.pack())

 ___
 nox-dev mailing list
 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

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