Try dpctl show nl:0. It shows the mapping of port number to interface. In NOX, discovery maps this using LLDP.
Regards KK On 19 November 2010 18:58, Rohit Manohar <rdman...@ncsu.edu> wrote: > Hi KK > > I am creating a topology with two Openflow switches and two hosts. A > representative diagram would be: > > > Host1 -------- Openflow1 -------------Openflow2 --------------Host2 > > > Now, on Openflow1 I use './dpctl addif nl:0 eth0' to add the interface as > port. Same is done for eth1. Now, how do I find out if eth0 connects to > host1 or Openflow2? By using ifconfig I am able to figure out which > interface connects to the controller, but not for the rest of the devices. > Also, i am trying to use './dpctl get-idx OF_DEV', but i am not able to > figure what identifies a OF_DEV( I am assuming it is Openflow Device). Is it > the dpid for that Openflow switch? Are hosts considered Openflow Devices? > > Regards, > > On Fri, Nov 19, 2010 at 9:09 PM, kk yap <yap...@stanford.edu> wrote: >> >> Hi Rohit, >> >> I am confused. What do you mean by which port is connected to which >> switch. You mean the topology? >> >> Regards >> KK >> >> On 19 November 2010 17:36, Rohit Manohar <rdman...@ncsu.edu> wrote: >> > How do I identify which port is connected to which switch? I add >> > devices as './dpctl addif nl:0 eth0' specifying the port being used >> > for >> > connection, but I am not able to figure out which device is at the >> > other of the link. >> > >> > >> > -- >> > Rohit Manohar >> > Graduate Student >> > North Carolina State University >> > Raleigh, US. >> > >> > >> > _______________________________________________ >> > nox-dev mailing list >> > nox-dev@noxrepo.org >> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> > >> > > > > > -- > Rohit Manohar > Graduate Student > North Carolina State University > Raleigh, US. > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org