Yesterday I modified my controller to support multiple switches, according
to OpenFlow_Tutorial(
http://www.openflow.org/wk/index.php/OpenFlow_Tutorial#Support_Multiple_Switches<http://www.openflow.org/wk/index.php/OpenFlow_Tutorial#Start_Virtual_Machine>).
And it is succed, but I was still confusing.
The tutorial says "modify your switch so that it stores a MAC-to-port table
for each DPID". so I define two MAC-to-port tables for two switches.

self.mac_to_port_1 = {} # for DPID1
self.mac_to_port_2 = {} # for DPID2

If I want to controll 4 or more switches, I need to define 4 or more tables?
_______________________________________________
openflow-discuss mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to