Merge "Reduce verbosity/criticality of inconsistent yangstore messages"
[controller.git] / opendaylight / config / yang-test / src / main / yang / config-test-impl.yang
index 9ad7a44915b15bdfbce7a64cbdaf2eb02f8bba14..6ee379623bf128216a8328e5533918b9d543fb27 100644 (file)
@@ -35,6 +35,69 @@ module config-test-impl {
         config:java-name-prefix NetconfTestImpl;
     }
 
+    identity impl-identity-test {
+        base config:module-type;
+        config:provided-service test:testing;
+        config:java-name-prefix IdentityTest;
+    }
+
+    identity test-identity1 {
+
+    }
+
+    identity test-identity2 {
+        base test-identity1;
+    }
+
+    augment "/config:modules/config:module/config:configuration" {
+            case impl-identity-test {
+                when "/config:modules/config:module/config:type = 'impl-identity-test'";
+
+                leaf afi {
+                    type identityref {
+                        base test-identity1;
+                    }
+                }
+
+                container identities-container {
+                    leaf afi {
+                        type identityref {
+                            base test-identity1;
+                        }
+                    }
+                }
+
+                list identities {
+                    leaf afi {
+                        type identityref {
+                            base test-identity1;
+                        }
+                    }
+                    leaf safi {
+                        type identityref {
+                            base test-identity1;
+                        }
+                    }
+
+                    container identities-inner {
+                        leaf afi {
+                            type identityref {
+                                base test-identity1;
+                            }
+                        }
+                    }
+                }
+
+            }
+        }
+
+        augment "/config:modules/config:module/config:state" {
+            case impl-identity-test {
+                when "/config:modules/config:module/config:type = 'impl-identity-test'";
+
+            }
+        }
+
 
     augment "/config:modules/config:module/config:configuration" {
         case impl {
@@ -61,10 +124,6 @@ module config-test-impl {
                     default 127.0.0.1;
                 }
 
-                leaf ip {
-                    type inet:ip-address;
-                    // TODO defaults for union default 0:0:0:0:0:0:0:1;
-                }
             }
 
             leaf as-number {
@@ -136,6 +195,16 @@ module config-test-impl {
                 default ONE;
             }
 
+            leaf ip {
+                type inet:ip-address;
+                default 0:0:0:0:0:0:0:1;
+            }
+
+            leaf union-test-attr {
+                type tt:unionTest;
+                default 456;
+            }
+
             leaf sleep-factor {
                 type decimal64 {
                     fraction-digits 2;