...
The deviceManager component on SDN-R is listening to the connection-status changes for NetConf mountpoints. If the connection-status changes to "connected" the NetConf create-subscription message for netconf notifications is send to the NetConf-server. From now on the NetConf client service is sending NetConf notifications to SDN-R (ODL) devicemanager listener. Every listener on NetConf Notification for this NetConf-Server will trigger the specific handler to process the message.
There are two ODL Listerner interfaces used by devicemanger:
- ODL Netconf Client related
- After subscription of NrtConf notification stream, notifications are forwarded to the listener.
- Related interface class: org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.microwave.model.rev170324.MicrowaveModelListener extends org.opendaylight.yangtools.yang.binding.NotificationListener extends java.util.EventListener
- ODL MDSAL DataTree related
- After regsitration of the listern, all Data Tree changes of related elements are forwarded to the listerner.
- Object id for nodes is specified like this:
private static final InstanceIdentifier<Node> NETCONF_NODE_TOPO_IID = InstanceIdentifier
.create(NetworkTopology.class)
.child(Topology.class, new TopologyKey(new TopologyId(TopologyNetconf.QNAME.getLocalName())))
.child(Node.class); Related interface class: org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener<Node>
Gliffy Diagram | ||||
---|---|---|---|---|
|