diff options
author | janani b <janani.b@huawei.com> | 2018-09-12 18:30:28 +0530 |
---|---|---|
committer | janani b <janani.b@huawei.com> | 2018-09-12 18:30:28 +0530 |
commit | 259eece936114ccacf9acc8f412eeed033fd10c4 (patch) | |
tree | a3cd3e726b234c546e5433a9006ac71896c0760d /restconf-client/provider/src/test/resources/yang/test-augment.yang | |
parent | f7086e83c97a72be14ef6813b3c1f8bd0546452e (diff) |
UT and defect fixes for DF serializer
UT and defect fixes
Issue-ID: CCSDK-376
Change-Id: Ia5f04a0d7e07caad0e3b380fdfa6cc109ec43b4e
Signed-off-by: janani b <janani.b@huawei.com>
Diffstat (limited to 'restconf-client/provider/src/test/resources/yang/test-augment.yang')
-rw-r--r-- | restconf-client/provider/src/test/resources/yang/test-augment.yang | 59 |
1 files changed, 40 insertions, 19 deletions
diff --git a/restconf-client/provider/src/test/resources/yang/test-augment.yang b/restconf-client/provider/src/test/resources/yang/test-augment.yang index bac19171b..795000d39 100644 --- a/restconf-client/provider/src/test/resources/yang/test-augment.yang +++ b/restconf-client/provider/src/test/resources/yang/test-augment.yang @@ -14,19 +14,24 @@ module test-augment { augment "/t:cont1/t:cont2/t:cont4" { container cont5 { leaf leaf13 { - type string; + type empty; } } list list7 { - leaf leaf14 { - type string; - } + leaf leaf14 { + type instance-identifier; + } } leaf leaf15 { type string; } leaf-list ll6 { - type string; + type union { + type int32; + type enumeration { + enum "unbounded"; + } + } } uses "t:g1"; } @@ -34,16 +39,22 @@ module test-augment { uses "t:g1"; augment "/t:ch1/t:c1/t:cont8/t:cont6" { choice ch2 { - case c3 { - leaf leaf21 { - type string; - } - } - case c4 { - leaf leaf22 { - type string; - } - } + case c3 { + leaf leaf21 { + type string; + } + } + case c4 { + leaf leaf22 { + type enumeration { + enum zero; + enum one; + enum seven { + value 7; + } + } + } + } } } @@ -72,14 +83,24 @@ module test-augment { } augment "/t:create-sfc/t:input" { - leaf leaf36 { - type string; - } + leaf leaf36 { + type bits { + bit angle { + position 0; + } + bit degree { + position 1; + } + bit movement { + position 2; + } + } + } } augment "/t:create-sfc/t:output" { leaf leaf37 { - type string; + type boolean; } } }
\ No newline at end of file |