X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Frestconf%2Fimpl%2FJSONRestconfServiceImpl.java;h=9c9084fc2f2cfb4cbbdd8f5b314e4b53f7c16a95;hb=a4270b5d2b45a8c9120b39a46377bb322d36ecf9;hp=57457519f6717818d05fc286d22c86e896f18298;hpb=d434f750405b4509121900b677a80402c077b422;p=netconf.git diff --git a/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/JSONRestconfServiceImpl.java b/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/JSONRestconfServiceImpl.java index 57457519f6..9c9084fc2f 100644 --- a/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/JSONRestconfServiceImpl.java +++ b/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/JSONRestconfServiceImpl.java @@ -92,15 +92,16 @@ public class JSONRestconfServiceImpl implements JSONRestconfService, AutoCloseab } @Override - public Optional get(final String uriPath, final LogicalDatastoreType datastoreType) throws OperationFailedException { + public Optional get(final String uriPath, final LogicalDatastoreType datastoreType, final UriInfo uriInfo) + throws OperationFailedException { LOG.debug("get: uriPath: {}", uriPath); try { NormalizedNodeContext readData; if(datastoreType == LogicalDatastoreType.CONFIGURATION) { - readData = RestconfImpl.getInstance().readConfigurationData(uriPath, null); + readData = RestconfImpl.getInstance().readConfigurationData(uriPath, uriInfo); } else { - readData = RestconfImpl.getInstance().readOperationalData(uriPath, null); + readData = RestconfImpl.getInstance().readOperationalData(uriPath, uriInfo); } final Optional result = Optional.of(toJson(readData));