Hello Murphy,

I changed max_len  to 128 for the action -> send to openflow.OFPP_CONTROLLER
and tried again.

what i observe is : The switch sends a  Port Status Message
(ofp_port_status) with OFPPR_MODIFY  with reason field set as "Some
attribute of the port has changed".

The Physical Port Header field shows Port #: Local (local openflow "port")
and Port Name : tap1.

After this message is received the connection between controller and switch
is down.

I suspect this change in port status happens because the controller sends ->
off_action with OFPAT_OUTPUT --> with output port to Controller.

This is how i started the ofdatapths-> *ofdatapath punix:/var/run/dp0.sock
-i eth0,eth2 --local-port=tap:tap1*

**Is this a bug with openflow datapath or I am doing something wrong ?

I would really appreciate any help in debugging this and making it work.

Thanks a lot,

Regards,
Vishal

On Thu, May 5, 2011 at 8:31 PM, Murphy McCauley <[email protected]> wrote:

> This looks fine to me on quick glance.  Even if it wasn't, I'd say it
> shouldn't
> crash ofdatapath.  You might want to bring it up on one of the OpenFlow
> mailing lists like openflow-discuss (or maybe openflow-support now?).
>
> -- Murphy
>
> On Thursday, May 05, 2011 03:13:00 PM Vishal wrote:
> > Hi,
> >
> > I want to duplicate a particular data flow to the controller.
> >
> > My set up includes nox based controller and userspace openflow switches
> > (ofdatapath and ofprotocol)  running on ubuntu.
> >
> > In pyswitch.py, I set up the following 'action':
> >
> > actions = [[openflow.OFPAT_OUTPUT, [0, prt[0]]], *[openflow.OFPAT_OUTPUT,
> > [0, openflow.OFPP_CONTROLLER]]*]
> > install_datapath_flow(dpid, flow, CACHE_TIMEOUT,
> >                                        openflow.OFP_FLOW_PERMANENT,
> > actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, buf)
> >
> > It seems this is not working and causes the ofdatapath process to crash.
> >
> > Is the above way correct way to apply multiple forwarding action for a
> > matching flow?
> >
> > Does userspace openflow ofdatapath does not support multiple actions or
> > action involving sending the flow to the controller.
> >
> > Thanks a lot for help,
> >
> > Regards,
> > Vishal
>
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to