Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Increased version of binding-generator to 0.5.5-SNAPSHOT.
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
binding-generator-impl
/
src
/
test
/
resources
/
bit_and_union_in_leaf.yang
diff --git
a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang
b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang
index e254dd224f61bb0558c4462c9d5d41416b8c45cd..b5279b0b6a846c511c3eea72d4d49562d73ba534 100644
(file)
--- a/
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang
+++ b/
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang
@@
-1,5
+1,5
@@
module bit-and-union-in-leaf {
module bit-and-union-in-leaf {
-
+
namespace "urn:bit:union:in:leaf";
prefix "sbd";
namespace "urn:bit:union:in:leaf";
prefix "sbd";
@@
-7,25
+7,25
@@
module bit-and-union-in-leaf {
contact "http://www.opendaylight.org/";
revision 2013-06-26 {
contact "http://www.opendaylight.org/";
revision 2013-06-26 {
-
+
}
}
-
+
typedef union-typedef {
type union {
type string {
pattern "[a-g]";
typedef union-typedef {
type union {
type string {
pattern "[a-g]";
- }
;
+ }
type int16;
}
}
type int16;
}
}
-
+
typedef union-typedef2 {
type union {
type string;
type int16;
}
}
typedef union-typedef2 {
type union {
type string;
type int16;
}
}
-
+
container parent-container {
leaf bit-leaf {
type bits {
container parent-container {
leaf bit-leaf {
type bits {
@@
-34,20
+34,20
@@
module bit-and-union-in-leaf {
bit third-bit;
}
}
bit third-bit;
}
}
-
+
leaf union-leaf {
type union {
type int32;
type string {
pattern "[a-z]";
leaf union-leaf {
type union {
type int32;
type string {
pattern "[a-z]";
- }
;
+ }
type string {
type string {
- pattern "[0-9]*"
- }
;
+ pattern "[0-9]*"
;
+ }
type string {
pattern "[a-d]*";
pattern "[0-5]*";
type string {
pattern "[a-d]*";
pattern "[0-5]*";
- }
;
+ }
type uint8;
}
}
type uint8;
}
}