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