Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

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

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.