Hi,

Unfortunately that didnt work. I also tried changing the in_port to
OFPP_LOCAL but without success.
Is this even possible? Can we initiate sending a packet from the controller
to the switch with an action?

Thanks,
Marvin D.


On Thu, Jun 20, 2013 at 2:50 AM, Isaku Yamahata <[email protected]>wrote:

> Probably you want to use OFPP_ALL instead of OFPP_FLOOD.
>
> thanks,
>
> On Thu, Jun 20, 2013 at 12:43:08AM -0700, Marvin Dsouza wrote:
> > Hi,
> >
> > I need a functionality where I send a packet from the controller to the
> switch
> > (not in response to a packetIn Event) when the switch connects to the
> > controller. And The switch should flood this packet to its neighbors.
> >
> > This is the flood neighbors method :
> >
> -----------------------------------------------------------------------------------------
> > def flood_neighbours(self, dp):
> >         dpid = dp.id
> >         ofproto = dp.ofproto
> >
> >         out_port = ofproto.OFPP_FLOOD
> >
> >         actions = [dp.ofproto_parser.OFPActionOutput(out_port)]
> >         msg_data = 'type1' + '|' + str(dpid)
> >
> >         out = dp.ofproto_parser.OFPPacketOut(
> >             datapath=dp,buffer_id=0xffffffff,in_port=
> > ofproto.OFPP_CONTROLLER,actions=actions,data=msg_data)
> >         print 'Flooding neighbours, Switch:%s',dpid
> >         dp.send_msg(out)
> >
> ------------------------------------------------------------------------------------
> >
> > This runs without any errors but does not seem to send any packet or
> atleast
> > doesn't invoke the packetIn handler. I would like to invoke the packetIn
> > handler so that I can learn the input ports for the connected switch.
> >
> > Any help is appreciated.
> > --
> > Thanks and Regards,
> >
> > Marvin D'souza
> > 408-429-0257
>
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
> --
> yamahata
>



-- 
Thanks and Regards,

*Marvin D'souza*
408-429-0257
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to