Merge "BUG-1958 Fix leafref path in config-yang module."
authorTony Tkacik <ttkacik@cisco.com>
Thu, 16 Oct 2014 10:08:50 +0000 (10:08 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 16 Oct 2014 10:08:50 +0000 (10:08 +0000)
opendaylight/config/config-api/src/main/yang/config.yang

index a0a4292adf406a597fa120cdbf869c5b4cc0e0c6..5d6c11fbeead51a0652ce151265ca3e50313f7d0 100644 (file)
@@ -122,7 +122,9 @@ module config {
                  the actual service-type which is actually required.";
 
             mandatory true;
-            type service-type-ref;
+            type leafref {
+                path "/config:services/config:service/config:type";
+            }
         }
 
         leaf name {