BUG-272: Fix module whitespace 18/7818/3
authorRobert Varga <rovarga@cisco.com>
Sun, 8 Jun 2014 18:38:17 +0000 (20:38 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 12 Jun 2014 21:40:29 +0000 (21:40 +0000)
This patch fixes yang module whitespace to make the structure clear.

Change-Id: I05442cff873b31a2e68f010c630a4b3da2f5c0c3
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/test/resources/cnsn-to-xml/yang/basic-module.yang

index 020ff8f..9c61d47 100644 (file)
 module basic-module {
-  namespace "basic:module";  
-
-  prefix "basmod";
-  
-  import referenced-module {prefix refmo; revision-date 2013-12-2;}
-   
-  revision 2013-12-2 {    
-  }
-  
-       container cont {
-          container cont1 {
-               leaf lf11 {
-                       type identityref {
-                               base "refmo:iden";
-                       }
-               }
-               }
-               leaf lfStr {
-                 type string;
-               }
-               leaf lfInt8 {
-                 type int8;
-               }
-               
-               leaf lfInt16 {
-                 type int16;
-               }
-               
-               leaf lfInt32 {
-                 type int32;
-               }
-               
-               leaf lfInt64 {
-                 type int64;
-               }
-               
-               leaf lfUint8 {
-                 type uint8;
-               }
-               
-               leaf lfUint16 {
-                 type uint16;
-               }
-               
-               leaf lfUint32 {
-                 type uint32;
-               }
-               
-               leaf lfUint64 {
-                 type uint64;
-               }
-               
-               leaf lfBinary {
-                 type binary;
-               }
-               
-               leaf lfBits {
-                 type bits {
-                     bit one;
-                     bit two;
-                     bit three;
-                 }
-               }
-               
-               leaf lfEnumeration {
-                 type enumeration {
-                     enum enum1;
-                     enum enum2;
-                     enum enum3;
-                 }
-               }
-               
-               leaf lfEmpty {
-                 type empty;
-               }
-               
-               leaf lfBoolean {
-                 type boolean;
-               }
-               
-               leaf lfUnion {
-                 type union {
-                     type int8;
-                     type string;
-                     type bits {
-                         bit first;
-                         bit second;
-                     }
-                     type boolean;
-                 }
-               }
-               
-               leaf lfLfref {
-                 type leafref {
-                     path "/cont/lfBoolean";
-                 }    
-               }
-               
-               leaf lfInIdentifier {
-                 type instance-identifier;
-               }
-               
-       }
-         
-}
\ No newline at end of file
+    namespace "basic:module";
+
+    prefix "basmod";
+
+    import referenced-module {prefix refmo; revision-date 2013-12-2;}
+
+    revision 2013-12-2 {
+    }
+
+    container cont {
+        container cont1 {
+            leaf lf11 {
+                type identityref {
+                    base "refmo:iden";
+                }
+            }
+        }
+        leaf lfStr {
+            type string;
+        }
+        leaf lfInt8 {
+            type int8;
+        }
+
+        leaf lfInt16 {
+            type int16;
+        }
+
+        leaf lfInt32 {
+            type int32;
+        }
+
+        leaf lfInt64 {
+            type int64;
+        }
+
+        leaf lfUint8 {
+            type uint8;
+        }
+
+        leaf lfUint16 {
+            type uint16;
+        }
+
+        leaf lfUint32 {
+            type uint32;
+        }
+
+        leaf lfUint64 {
+            type uint64;
+        }
+
+        leaf lfBinary {
+            type binary;
+        }
+
+        leaf lfBits {
+            type bits {
+                bit one;
+                bit two;
+                bit three;
+            }
+        }
+
+        leaf lfEnumeration {
+            type enumeration {
+                enum enum1;
+                enum enum2;
+                enum enum3;
+            }
+        }
+
+        leaf lfEmpty {
+            type empty;
+        }
+
+        leaf lfBoolean {
+            type boolean;
+        }
+
+        leaf lfUnion {
+            type union {
+                type int8;
+                type string;
+                type bits {
+                    bit first;
+                    bit second;
+                }
+                type boolean;
+            }
+        }
+
+        leaf lfLfref {
+            type leafref {
+                path "/cont/lfBoolean";
+            }
+        }
+
+        leaf lfInIdentifier {
+            type instance-identifier;
+        }
+
+    }
+
+}

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.