I think it maybe mininet bug, because after i change the mininet' ovs name to top1 top2 top3 top4, i can get 4 datapath id in the ryu controller.
On Wed, May 27, 2015 at 10:47 PM, Vinllen Chen <[email protected]> wrote: > Hi, Dear all, > > I create 4 switches in the mininet: > # mn --custom tor_topo.py --topo mytopo --mac > --switch=ovsk,protocols=OpenFlow13 --controller=remote > *** Creating network > *** Adding controller > Unable to contact the remote controller at 127.0.0.1:6633 > *** Adding hosts: > h1 h2 h3 h4 > *** Adding switches: > aaa1 aaa2 top1 top2 > *** Adding links: > (aaa1, top1) (aaa1, top2) (aaa2, top1) (aaa2, top2) (h1, aaa1) (h2, aaa1) > (h3, aaa2) (h4, aaa2) > *** Configuring hosts > h1 h2 h3 h4 > *** Starting controller > c0 > *** Starting 4 switches > aaa1 aaa2 top1 top2 ... > *** Starting CLI: > > But in the ryu code, i can only capture 2 datapath use the following > code: > @set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER) > def handler_datapath(self, ev): > print "=Event DP=" > print "dpid: %i" % ev.dp.id > print ev.dp.address > if ev.enter: > print "in dp event" > > #ryu-manage flow.py > loading app flowmod2ovs.py > loading app ryu.controller.ofp_handler > instantiating app None of DPSet > creating context dpset > instantiating app flowmod2ovs.py of OfdpaTe > instantiating app ryu.controller.ofp_handler of OFPHandler > DPSET: Multiple connections from 0000000000000002 > =Event DP= > dpid: 2 > ('127.0.0.1', 53878) > in dp event > =Event DP= > dpid: 1 > ('127.0.0.1', 53880) > in dp event > DPSET: Multiple connections from 0000000000000001 > > The command "netstat -anlpt | grep 6633" show i have 53878, 53881, > 53880, 53879 map to 4 ovs. It looks like two of the switches has the same > datapath id. > > Could anyone tell me the reason ? Thankyou very much > > Best Regards, > Vinllen >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
