Re: [pox-dev] How to get switch name set in Mininet in POX

2013-10-29 Thread Sulabh Bista
Thanks for the clarification. On Tue, Oct 29, 2013 at 8:31 PM, Murphy McCauley wrote: > On Oct 29, 2013, at 5:23 PM, Sulabh Bista wrote: > > Thanks Murphy. That helped. > > I noticed (with the dpctl show command in Mininet CLI) that two switches > s1 and r1 have the same DPID. Should DPID be un

Re: [pox-dev] How to get switch name set in Mininet in POX

2013-10-29 Thread Murphy McCauley
On Oct 29, 2013, at 5:23 PM, Sulabh Bista wrote: > Thanks Murphy. That helped. > > I noticed (with the dpctl show command in Mininet CLI) that two switches s1 > and r1 have the same DPID. Should DPID be unique or is this behaviour ok? Nope, not okay. They're supposed to be unique and it says

Re: [pox-dev] How to get switch name set in Mininet in POX

2013-10-29 Thread Sulabh Bista
Thanks Murphy. That helped. I noticed (with the dpctl show command in Mininet CLI) that two switches s1 and r1 have the same DPID. Should DPID be unique or is this behaviour ok? I checked the source where dpid is being generated automatically and it shows that the dpid is derived from the number

Re: [pox-dev] How to get switch name set in Mininet in POX

2013-10-29 Thread Murphy McCauley
I don't think that switch name is communicated in a particularly direct way over OpenFlow. That is, I don't think it's set as one of the fields in the switch stats or anything. However, you can take advantage of the fact that this name is used as the name of the "internal" port on the switch,

[pox-dev] How to get switch name set in Mininet in POX

2013-10-29 Thread Sulabh Bista
Hello: I wanted to know if we can fetch the name assigned to an OVSwitch in Mininet in POX. I am listening to PacketIn event and found noting relating to the switch name in the 'event' object. I am new to all of this. Sorry if my question sounds too dumb. Regards, Sulabh Bista