Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactored SchemaPath for yang java types. Fixed SchemaPath for augmented nodes types.
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
yang-model-parser-impl
/
src
/
test
/
resources
/
model
/
testfile1.yang
diff --git
a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
index 2f4355390bf65dc4b66cab51fb04ee45cf4ac06b..619a5c3e104a1ecd3dcc331ee235a3647cd47ebd 100644
(file)
--- a/
opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
+++ b/
opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
@@
-31,9
+31,9
@@
module types1 {
}
leaf leaf-with-length {
}
leaf leaf-with-length {
- type data:my-string-type {
-
length "7..max";
- }
+
type data:my-string-type {
+ length "7..max";
+
}
}
leaf test-int-leaf {
}
leaf test-int-leaf {
@@
-55,7
+55,7
@@
module types1 {
}
leaf union-leaf {
}
leaf union-leaf {
- type data:my-union-ext;
+
type data:my-union-ext;
}
deviation /data:system/data:user {
}
deviation /data:system/data:user {
@@
-66,7
+66,7
@@
module types1 {
}
leaf nested-union-leaf {
}
leaf nested-union-leaf {
- type data:nested-union1;
+
type data:nested-union1;
}
leaf custom-union-leaf {
}
leaf custom-union-leaf {
@@
-113,6
+113,16
@@
module types1 {
leaf ds0ChannelNumber {
type string;
}
leaf ds0ChannelNumber {
type string;
}
+ leaf interface-id {
+ type leafref {
+ path "/if:interfaces/if:interface/if:name";
+ }
+ }
+ leaf-list higher-layer-if {
+ type leafref {
+ path "/if:interfaces/if:interface/if:higher-layer-if";
+ }
+ }
}
}
}
}