import org.opendaylight.controller.sal.connect.netconf.listener.NetconfSessionCapabilities;
import org.opendaylight.controller.sal.core.api.RpcImplementation;
import org.opendaylight.yangtools.yang.data.api.CompositeNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
/**
* Implementation of RemoteDeviceHandler. Integrates cli with
}
@Override
- public synchronized void onDeviceConnected(final SchemaContextProvider contextProvider,
+ public synchronized void onDeviceConnected(final SchemaContext context,
final NetconfSessionCapabilities capabilities, final RpcImplementation rpcImplementation) {
console.enterRootContext(new ConsoleContext() {
// possible
// TODO detect netconf base version
// TODO detect inet types version
- commandDispatcher.addRemoteCommands(rpcImplementation, contextProvider.getSchemaContext());
- schemaContextRegistry.setRemoteSchemaContext(contextProvider.getSchemaContext());
+ commandDispatcher.addRemoteCommands(rpcImplementation, context);
+ schemaContextRegistry.setRemoteSchemaContext(context);
up = true;
this.notify();
}