Hello,

I installed Openflow 1.3 complaint software and mininet following the
instructions mentioned on:-
https://github.com/CPqD/ofsoftswitch13/wiki/OpenFlow-1.3-Tutorial

But when I use this switch PacketIn Events are not raised. However
Connection up event handlers are still invoked.

This problem is encountered not only with my code but the sample l2switch
code. Though it works fine with ovsk switch PacketIn event handler is never
invoked with the software switch.

Does Ryu support ofsoftswitch? Or is there any other Opneflow 1.3 compliant
switch that I can use?

The code I used:-

class GroupTableTest(app_manager.RyuApp):
    def __init__(self, *args, **kwargs):
        super(GroupTableTest, self).__init__(*args, **kwargs)

    @set_ev_cls(ofp_event.EventOFPStateChange,MAIN_DISPATCHER)
    def _handle_ConnectionUp(self,ev):
        print "Inside Connection up event."
        print "Switch "+str(ev.datapath.id)+" is up!!"
        datapath = ev.datapath
        ofp = datapath.ofproto
        ofp_parser = datapath.ofproto_parser

        weight = 100
        watch_port = 0
        watch_group = 0
        buckets = [ofp_parser.OFPBucket(weight, watch_port,
watch_group,[ofp_parser.OFPActionOutput(2, 2000)])]
        buckets.append(ofp_parser.OFPBucket(weight, watch_port,
watch_group,[ofp_parser.OFPActionOutput(3, 2000)]))
        group_id = 1
        req = ofp_parser.OFPGroupMod(datapath,
ofp.OFPFC_ADD,ofp.OFPGT_SELECT, group_id, buckets)
        datapath.send_msg(req)
        print "Installed group table."
        #Add action to output to group

    @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
    def packet_in_handler(self, ev):
        print "Inside packet_in handler."
        msg = ev.msg
        dp = msg.datapath
        ofp = dp.ofproto
        ofp_parser = dp.ofproto_parser

        actions = [ofp_parser.OFPActionGroup(1)]
        out = ofp_parser.OFPPacketOut(
            datapath=dp, buffer_id=msg.buffer_id, in_port=msg.in_port,
            actions=actions)
        dp.send_msg(out)


The connection up event handlers are invoked but packet in event handler is
never invoked. Is there anything that I am doing wrong?


-- 
-Sameer
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to