- final NetconfSessionPreferences netconfSessionPreferences,
- final DOMRpcService deviceRpc) {
- this.remoteSchemaContext = remoteSchemaContext;
- this.netconfSessionPreferences = netconfSessionPreferences;
- this.deviceRpc = deviceRpc;
+ final NetconfSessionPreferences sessionPreferences,
+ final DOMRpcService domRpcService, final DOMActionService domActionService) {
+ // We do not support actions in clustered topology yet
+ if (domActionService != null) {
+ LOG.warn("{}: YANG 1.1 actions are not supported in clustered netconf topology, "
+ + "DOMActionService will not be exposed for the device", id);
+ }
+
+ onDeviceConnected(remoteSchemaContext, sessionPreferences, domRpcService);
+ }
+
+ @Override
+ public void onDeviceConnected(final SchemaContext remoteSchemaContext,
+ final NetconfSessionPreferences sessionPreferences,
+ final DOMRpcService domRpcService) {
+ this.currentSchemaContext = remoteSchemaContext;
+ this.netconfSessionPreferences = sessionPreferences;
+ this.deviceRpc = domRpcService;
+
+ LOG.info("Device {} connected - registering master mount point", id);