Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 1 | module Augment-choice { |
| 2 | yang-version 1; |
| 3 | namespace yms:test:ytb:choice:with:container:and:leaf:list"; |
| 4 | prefix "sch1"; |
janani b | b8604ed | 2017-08-17 17:38:31 +0530 | [diff] [blame] | 5 | |
| 6 | import YtbChoiceWithContainerAndLeafList { |
| 7 | prefix sch; |
| 8 | } |
Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 9 | revision "2016-08-26"; |
| 10 | |
janani b | b8604ed | 2017-08-17 17:38:31 +0530 | [diff] [blame] | 11 | identity ip { |
| 12 | } |
| 13 | |
| 14 | identity private-ip { |
| 15 | base ip; |
| 16 | } |
| 17 | |
| 18 | identity public-ip { |
| 19 | base ip; |
| 20 | } |
| 21 | |
Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 22 | augment /sch:content-test/ { |
| 23 | list aug-choice-modKey { |
janani b | b8604ed | 2017-08-17 17:38:31 +0530 | [diff] [blame] | 24 | key "types"; |
Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 25 | leaf types { |
| 26 | type int32; |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | augment /sch:content-test/sch:valid { |
janani b | b8604ed | 2017-08-17 17:38:31 +0530 | [diff] [blame] | 32 | 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 saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 57 | list aug-case-modKey { |
| 58 | key "types"; |
| 59 | leaf types { |
| 60 | type int32; |
| 61 | } |
| 62 | } |
janani b | b8604ed | 2017-08-17 17:38:31 +0530 | [diff] [blame] | 63 | } |
Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 64 | } |