[Ryu-devel] Dpid of Switch

2018-07-05 Thread udeh Paschal
Hello guys, please I am modifying the simple switch 13 python file. I want to give some instructions to some switches in my topology so I need to extract the datapath id of my switches. Although I know the dpid since it is my topology but I want to extract it in a section of my code where I want to

[Ryu-devel] Writing flow tables in simple switch

2018-06-18 Thread udeh Paschal
Hi guys, i am new to Ryu and I am trying to add my own flow table to the simple switch python file but I am getting errors. Below is the code I used @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER) def switch_features_handler(self, ev): datapath = ev.msg.datapath