On Fri, 06 Jul 2018 06:06:53 +0900, udeh Paschal wrote: > 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 input those instructions. Please how do I go about it?
A python singleton class or a global variable can be used for such a purpose. Google for details. -- IWAMOTO Toshihiro ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel