Ask Your Question

How to access Topology/node details from MD-SAL in App

asked 2015-03-28 12:41:52 -0700

gyanesh gravatar image

Need any pointer about how to access the Topology details from MD-SAL inside a user developed ODL application. -> which service needs to be registered -> is there any api available for this -> Which code base in ODL can give us a better pointer for this.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-03-29 22:35:11 -0700

Ashwini_Mhatre gravatar image

Hi, You need to install odl-l2switch-switch feature and for accessing network topology use following URL: http://<controller ip="">:8181/restconf/operational/network-topology:network-topology/topology/flow:1/</controller>

Regards, Ashwini

edit flag offensive delete publish link more

answered 2015-03-31 05:52:21 -0700

gyanesh gravatar image

Thanks @Ashwini_Mhatre
I am aware of the RestAPIs. I am more interested in programming level. Inside a user developed module, how to access the Nodes/topology/links. It is better to use the DataBroker or DataProviderService? Or is it good to use ITopologyManager ? Any example or existing module which has similar functionality to understand it better?

edit flag offensive delete publish link more


If you are using ad-sal approach then you can go with Itopologymanager ,if you are using MD-SAL then go with DataBroker its up to you. in both the case you can able to access Nodes/topology/link for MD-SAL you can refer following link:

Ashwini_Mhatre ( 2015-03-31 20:28:24 -0700 )edit

thanks.. Can i take a look in any existing ODL project for reference? That will give me a better overview including various error checking also.

gyanesh ( 2015-04-01 05:13:32 -0700 )edit

Then you can go with l2switch code. the above is devloper guide for l2switch.

Ashwini_Mhatre ( 2015-04-01 22:49:28 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools



Asked: 2015-03-28 12:41:52 -0700

Seen: 531 times

Last updated: Mar 31 '15