BUG-1958 Fix leafref path in config-yang module. 88/11588/1
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 25 Sep 2014 15:29:57 +0000 (17:29 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Thu, 25 Sep 2014 15:29:57 +0000 (17:29 +0200)
When using a condition in the path, the value that is compared has to be a leaf reaf

Change-Id: I898b9448099fd7240aea49cc1c3fe40e9ee7c3d0
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
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 {