X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Frest%2Fservices%2Fimpl%2FRestconfModulesServiceImpl.java;h=4ac1750b7fd5401204c82ce10d61e14bbd23a729;hb=9d68f579466ee3d94a75680d5ef2a6a017956bde;hp=afefd6d45722b1bc80f855e53ee360c6a40a770a;hpb=73a97a3fa5f635ca54803b5969572df8632b6516;p=netconf.git diff --git a/restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/RestconfModulesServiceImpl.java b/restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/RestconfModulesServiceImpl.java index afefd6d457..4ac1750b7f 100644 --- a/restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/RestconfModulesServiceImpl.java +++ b/restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/RestconfModulesServiceImpl.java @@ -18,7 +18,7 @@ import org.opendaylight.netconf.sal.restconf.impl.NormalizedNodeContext; import org.opendaylight.netconf.sal.restconf.impl.RestconfDocumentedException; import org.opendaylight.netconf.sal.restconf.impl.RestconfError.ErrorTag; import org.opendaylight.netconf.sal.restconf.impl.RestconfError.ErrorType; -import org.opendaylight.restconf.Draft11; +import org.opendaylight.restconf.Draft16; import org.opendaylight.restconf.common.references.SchemaContextRef; import org.opendaylight.restconf.handlers.DOMMountPointServiceHandler; import org.opendaylight.restconf.handlers.SchemaContextHandler; @@ -117,7 +117,7 @@ public class RestconfModulesServiceImpl implements RestconfModulesService { final MapNode moduleMap = RestconfMappingNodeUtil .restconfMappingNode(schemaContextRef.getRestconfModule(), modules); final DataSchemaNode moduleSchemaNode = RestconfSchemaUtil.getRestconfSchemaNode( - schemaContextRef.getRestconfModule(), Draft11.RestconfModule.MODULE_LIST_SCHEMA_NODE); + schemaContextRef.getRestconfModule(), Draft16.RestconfModule.MODULE_LIST_SCHEMA_NODE); Preconditions.checkState(moduleSchemaNode instanceof ListSchemaNode); if (mountPoint == null) { return new NormalizedNodeContext( @@ -148,7 +148,7 @@ public class RestconfModulesServiceImpl implements RestconfModulesService { final MapNode mapNodes = RestconfMappingNodeUtil.restconfMappingNode(restconfModule, modules); final DataSchemaNode schemaNode = RestconfSchemaUtil.getRestconfSchemaNode(restconfModule, - Draft11.RestconfModule.MODULES_CONTAINER_SCHEMA_NODE); + Draft16.RestconfModule.MODULES_CONTAINER_SCHEMA_NODE); Preconditions.checkState(schemaNode instanceof ContainerSchemaNode); final DataContainerNodeAttrBuilder modulContainerSchemaNodeBuilder = Builders .containerBuilder((ContainerSchemaNode) schemaNode);