How to know which host is connected to which switch(switch mac adderess and port no) using opendaylight rest apis?

asked 2014-12-30 03:45:21 -0800

yogesh_pandey gravatar image

updated 2014-12-30 22:16:45 -0800

Using opendaylight rest apis how can I view the hosts and their connection to switches (port and switch names.

edit retag flag offensive close merge delete

Comments

HI , you can use the folowing Rest API to track the hosts and the node on which thess are connected.:- For Active Host:- http://localhost:8080/controller/nb/v2/hosttracker/default/hosts/active For Inactive Host:- http://localhost:8080/controller/nb/v2/hosttracker/default/hosts/inactive

viru ( 2014-12-30 05:31:47 -0800 )edit

Hi, But these apis dont provide me the port the hosts are connected to, i know that these provide the host and their connectivity to the switch but not to the ports, is there a way to find out which ports are these hosts connected to ?

yogesh_pandey ( 2014-12-30 22:16:24 -0800 )edit

Hi yogesh, you can try this one for getting port information of specific switch http://127.0.0.1:8080/controller/nb/v2/statistics/default/port/

Ashwini_Mhatre ( 2015-01-01 21:12:27 -0800 )edit

Hi Yogesh, Hopefully you have got below parameter which shows port on which host is <nodeconnectorid>5</nodeconnectorid>

viru ( 2015-01-04 23:18:29 -0800 )edit

But how do i find out which nodeconnecter is which port in the switch.?

yogesh_pandey ( 2015-01-05 04:07:00 -0800 )edit