Ask Your Question

How to convert from a BA to a BI instance identifier, and back again

asked 2014-05-21 11:27:47 -0700

Devin Avery gravatar image

While implementing DataChangeListeners, DataReaders, RpcImplemntations etc there is a lot of conversation between BA and BI instance identifiers, path arguments etc. I am looking for the proper way to convert between the two java types so we can satisfy the interfaces.

If you check out the example code on this gerrit ( ) and look at the DeviceMountHandler#mountIcmpDataNode() method and PingableDeviceHandler consutrctor you will see the various ways we have to manually create these various types of instance identifiers. Unfortunately in the data change listener interface, when we are notified of a change, we are given one type and we need to convert it to the other types.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-21 12:36:04 -0700

Tony Tkacik gravatar image

From OSGI service registry you could obtain instance of BindingIndependentMappingService from org.opendaylight.yangtools:binding-generator-impl, which provodes you with methods to do conversion. That service is used also in BindingIndependentConnecor in MD-SAL.

edit flag offensive delete publish link more

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

1 follower


Asked: 2014-05-21 11:27:47 -0700

Seen: 145 times

Last updated: May 21 '14