commit | e7db6149b46e6556637d7881c3e8d960d7fcdcba | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Nov 04 11:24:22 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Fri Nov 06 23:53:11 2015 +0000 |
tree | 3328b846f20695793a1fa3678247e011fbfd9c6a | |
parent | 4f98008c10352a241c17098f733836b594a5edae [diff] |
Register the root resoruce path The root resource path must be registered before use of ResourceService Change-Id: I9739522dd28300c27e209f2c88c937537f6a110e
diff --git a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java index 8537cca..82dfe32 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
@@ -16,6 +16,7 @@ package org.onosproject.store.newresource.impl; import com.google.common.annotations.Beta; +import com.google.common.collect.ImmutableList; import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; import org.apache.felix.scr.annotations.Reference; @@ -83,6 +84,8 @@ .withName(CHILD_MAP) .withSerializer(SERIALIZER) .build(); + + childMap.put(ResourcePath.ROOT, ImmutableList.of()); } @Override