ONOS-6483 API to check if node exists
Change-Id: I368340bccdfe89a6e95e1068b966acf64b8aa5b4
diff --git a/apps/config/src/main/java/org/onosproject/config/DynamicConfigService.java b/apps/config/src/main/java/org/onosproject/config/DynamicConfigService.java
index 102474d..ec856ad 100755
--- a/apps/config/src/main/java/org/onosproject/config/DynamicConfigService.java
+++ b/apps/config/src/main/java/org/onosproject/config/DynamicConfigService.java
@@ -74,6 +74,15 @@
Integer getNumberOfChildren(ResourceId path, Filter filter);
/**
+ * Returns whether the requested node exists in the Dynamic Config store.
+ *
+ * @param path data structure with absolute path to the intended node
+ * @return {@code true} if the node existed in the store
+ * {@code false} otherwise
+ */
+ Boolean nodeExist(ResourceId path);
+
+ /**
* Updates an existing node in the dynamic config store.
* Any missing children nodes will be created with this request.
* This method would throw an exception if the requested node or any of the