Fix bug5882 test case 38/85238/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 19 Oct 2019 10:18:54 +0000 (12:18 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 19 Oct 2019 10:52:56 +0000 (10:52 +0000)
This test case uses illegal duplicate leaves, fix that up.

Change-Id: I3330fafb11b798ab74f9a64b04f4bff8d82b2ce6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/test/resources/compilation/bug5882/foo.yang

index e77ac966c57f1b803db4c879e142091f289bd550..fc4e1ec4fdd84307fbbdfc78342522260a1f2f9f 100644 (file)
@@ -63,19 +63,19 @@ module foo {
         choice container-main-choice-depr {
             status deprecated;
             case depCase {
-            status deprecated;
-                leaf one {
+                status deprecated;
+                leaf dep-one {
                     type string;
                 }
             }
             case depLeaf {
-                leaf one {
-                status deprecated;
+                leaf depr-two {
+                    status deprecated;
                     type string;
                 }
             }
             case cur {
-                leaf two {
+                leaf depr-three {
                     type string;
                 }
             }
@@ -83,19 +83,19 @@ module foo {
 
         choice container-main-choice-cur {
             case depCase {
-            status deprecated;
-                leaf one {
+                status deprecated;
+                leaf cur-one {
                     type string;
                 }
             }
             case depLeaf {
-                leaf one {
-                status deprecated;
+                leaf cur-two {
+                    status deprecated;
                     type string;
                 }
             }
             case cur {
-                leaf two {
+                leaf cur-three {
                     type string;
                 }
             }
@@ -129,19 +129,19 @@ module foo {
     choice container-main-choice-depr {
         status deprecated;
         case depCase {
-        status deprecated;
-            leaf one {
+            status deprecated;
+            leaf depr-one {
                 type string;
             }
         }
         case depLeaf {
-            leaf one {
-            status deprecated;
+            leaf depr-two {
+                status deprecated;
                 type string;
             }
         }
         case cur {
-            leaf two {
+            leaf depr-three {
                 type string;
             }
         }
@@ -149,19 +149,19 @@ module foo {
 
     choice container-main-choice-cur {
         case depCase {
-        status deprecated;
-            leaf one {
+            status deprecated;
+            leaf cur-one {
                 type string;
             }
         }
         case depLeaf {
-            leaf one {
-            status deprecated;
+            leaf cur-two {
+                status deprecated;
                 type string;
             }
         }
         case cur {
-            leaf two {
+            leaf cur-three {
                 type string;
             }
         }
@@ -198,4 +198,4 @@ module foo {
             type typedef-current;
         }
     }
-}
\ No newline at end of file
+}