- onGlobalContextUpdated schemas need to be set to the global context
Change-Id: I86c898d8b70c0f1a7fcc61be1cb0b542c8f05096
Signed-off-by: Miroslav Macko <miroslav.macko@pantheon.tech>
import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
+import org.opendaylight.netconf.sal.restconf.impl.ControllerContext;
import org.opendaylight.netconf.sal.restconf.impl.RestconfDocumentedException;
import org.opendaylight.restconf.RestConnectorProvider;
import org.opendaylight.restconf.Rfc8040.IetfYangLibrary;
@Override
public void onGlobalContextUpdated(final SchemaContext context) {
Preconditions.checkNotNull(context);
+ ControllerContext.getInstance().setSchemas(context);
this.context = null;
this.context = context;
this.moduleSetId++;