Sho SHIMIZU
Committed by Ray Milkey

Register the root resoruce path

The root resource path must be registered before use of ResourceService

Change-Id: I9739522dd28300c27e209f2c88c937537f6a110e
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 package org.onosproject.store.newresource.impl; 16 package org.onosproject.store.newresource.impl;
17 17
18 import com.google.common.annotations.Beta; 18 import com.google.common.annotations.Beta;
19 +import com.google.common.collect.ImmutableList;
19 import org.apache.felix.scr.annotations.Activate; 20 import org.apache.felix.scr.annotations.Activate;
20 import org.apache.felix.scr.annotations.Component; 21 import org.apache.felix.scr.annotations.Component;
21 import org.apache.felix.scr.annotations.Reference; 22 import org.apache.felix.scr.annotations.Reference;
...@@ -83,6 +84,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour ...@@ -83,6 +84,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
83 .withName(CHILD_MAP) 84 .withName(CHILD_MAP)
84 .withSerializer(SERIALIZER) 85 .withSerializer(SERIALIZER)
85 .build(); 86 .build();
87 +
88 + childMap.put(ResourcePath.ROOT, ImmutableList.of());
86 } 89 }
87 90
88 @Override 91 @Override
......