blob: 637fa4576c3f70d52c17ad7a2e2fb5283250d641 [file] [log] [blame]
Bharat saraswal49120772017-03-10 17:06:10 +05301module Augment-choice {
2 yang-version 1;
3 namespace yms:test:ytb:choice:with:container:and:leaf:list";
4 prefix "sch1";
janani bb8604ed2017-08-17 17:38:31 +05305
6 import YtbChoiceWithContainerAndLeafList {
7 prefix sch;
8 }
Bharat saraswal49120772017-03-10 17:06:10 +05309 revision "2016-08-26";
10
janani bb8604ed2017-08-17 17:38:31 +053011 identity ip {
12 }
13
14 identity private-ip {
15 base ip;
16 }
17
18 identity public-ip {
19 base ip;
20 }
21
Bharat saraswal49120772017-03-10 17:06:10 +053022 augment /sch:content-test/ {
23 list aug-choice-modKey {
janani bb8604ed2017-08-17 17:38:31 +053024 key "types";
Bharat saraswal49120772017-03-10 17:06:10 +053025 leaf types {
26 type int32;
27 }
28 }
29 }
30
31 augment /sch:content-test/sch:valid {
janani bb8604ed2017-08-17 17:38:31 +053032 leaf ch-test {
33 type identityref {
34 base ip;
35 }
36 }
37
38 leaf-list test {
39 type int8;
40 }
41
42 container tested-cont {
43 leaf presence {
44 type string;
45 }
46 }
47
48 list unlisted-val {
49 key "presence";
50 leaf presence {
51 type string;
52 }
53 }
54 }
55
56 augment /sch:content-test/sch:valid {
Bharat saraswal49120772017-03-10 17:06:10 +053057 list aug-case-modKey {
58 key "types";
59 leaf types {
60 type int32;
61 }
62 }
janani bb8604ed2017-08-17 17:38:31 +053063 }
Bharat saraswal49120772017-03-10 17:06:10 +053064}