Merge "Fix errors reported by pyang"
[controller.git] / opendaylight / config / logback-config / src / main / yang / config-logging.yang
index 7af887671d21cf184cf7604284d1b58f77927e9f..3b28b574696683540391dd53ab041b0b40dd7ebb 100644 (file)
@@ -32,7 +32,7 @@ module config-logging {
             when "/config:modules/config:module/config:type = 'logback'";
 
             list file-appenders {
-                leaf append {
+               leaf append {
                     type boolean;
                     mandatory false;
                 }
@@ -41,19 +41,20 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
-
+                
                 leaf encoder-pattern {
                     type string;
                     mandatory true;
                 }
-
+                
                 leaf name {
                     type string;
                     mandatory true;
                 }
+                key name;
                 config:java-name-prefix FileAppenderTO;
             }
-
+            
             list rolling-appenders {
                 leaf append {
                     type boolean;
@@ -89,25 +90,26 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key name;
 
                 leaf file-name-pattern {
                     type string;
                     mandatory true;
                 }
-
+                
                 leaf rolling-policy-type {
                     type string;
                     mandatory true;
                 }
-
+                
                 leaf max-history {
                     type int32;
                     mandatory true;
                 }
-
+                
                 leaf clean-history-on-start {
                     type boolean;
-                    default 0;
+                    default false;
                 }
                 config:java-name-prefix RollingFileAppenderTO;
             }
@@ -128,6 +130,8 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key name;
+
                 config:java-name-prefix ConsoleAppenderTO;
             }
 
@@ -136,6 +140,7 @@ module config-logging {
                     type string;
                     mandatory true;
                 }
+                key logger-name;
 
                 leaf level {
                     type string;