[ONOS-5756] RESTCONF protocol support for RESTCONF App
* Created a config flag in RESTCONF protocol, to allow the protocol
to be dynamically configured to work with either YMS or Dynamic Config
during runtime.
* Note that this is an interim solution to help RESTCONF migrate from
YMS to Dynamic Config. The changes will be removed once the migration
is complete.
Change-Id: I36dc8537c88965034da6238df32dde7558ac5f5c
diff --git a/protocols/restconf/server/rpp/src/main/java/org/onosproject/protocol/restconf/server/rpp/RestconfWebResource.java b/protocols/restconf/server/rpp/src/main/java/org/onosproject/protocol/restconf/server/rpp/RestconfWebResource.java
index 35abdb0..0e0a686 100644
--- a/protocols/restconf/server/rpp/src/main/java/org/onosproject/protocol/restconf/server/rpp/RestconfWebResource.java
+++ b/protocols/restconf/server/rpp/src/main/java/org/onosproject/protocol/restconf/server/rpp/RestconfWebResource.java
@@ -21,7 +21,7 @@
import org.glassfish.jersey.server.ChunkedOutput;
import org.onosproject.protocol.restconf.server.api.Patch;
import org.onosproject.protocol.restconf.server.api.RestconfException;
-import org.onosproject.protocol.restconf.server.api.RestconfService;
+import org.onosproject.protocol.restconf.server.api.RestconfServiceBroker;
import org.onosproject.rest.AbstractWebResource;
import org.slf4j.Logger;
@@ -62,7 +62,7 @@
@Context
UriInfo uriInfo;
- private final RestconfService service = get(RestconfService.class);
+ private final RestconfServiceBroker service = get(RestconfServiceBroker.class);
private final Logger log = getLogger(getClass());
/**