Ask is moving to Stack Overflow and Serverfault.com! 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 does topology-manager create a node?

When there is a switch connecting to the controller, a session would be created and an onSessionAdded() function would be called in SalRegistrationManager.

In onSessionAdded(), it will publish the NodeUpdated in the end. However, how does topology-manager or other listeners takeover this notification? How can I know how many listeners on the NodeUpdated and what are they?

In topology-manager, how does it create a node and store it into database after receiving this notification?

I hope I can get some details about the logic.

Thanks

How does topology-manager create a node?

When there is a switch connecting to the controller, a session would be created and an onSessionAdded() function would be called in SalRegistrationManager.SalRegistrationManager. (For MD-SAL openflowplugin and openflowjava development)

In onSessionAdded(), it will publish the NodeUpdated in the end. However, how does topology-manager or other listeners takeover this notification? How can I know how many listeners on the NodeUpdated and what are they?

In topology-manager, how does it create a node and store it into database after receiving this notification?

I hope I can get some details about the logic.

Thanks

How does topology-manager create a node?

When there is a switch connecting to the controller, a session would be created and an onSessionAdded() function would be called in SalRegistrationManager. (For MD-SAL openflowplugin and openflowjava development)

In onSessionAdded(), it will publish the NodeUpdated in the end. However, how does topology-manager or other listeners takeover this notification? How can I know how many listeners on the NodeUpdated and what are they?

In topology-manager, how does it create a node and store it into database after receiving this notification?

I hope I can get some details about the logic.

Thanks