Khen Nursimulu | f8abbc9 | 2016-11-04 19:56:45 -0400 | [diff] [blame] | 1 | module container { |
| 2 | yang-version "1"; |
| 3 | namespace "http://rob.sh/yang/test/base-test"; |
| 4 | prefix "foo"; |
| 5 | organization "BugReports Inc"; |
| 6 | contact "A bug reporter"; |
| 7 | |
| 8 | description |
| 9 | "A test module that checks that the plugin works OK"; |
| 10 | revision 2014-01-01 { |
| 11 | description "april-fools"; |
| 12 | reference "fooled-you"; |
| 13 | } |
| 14 | |
| 15 | container int-container { |
| 16 | description |
| 17 | "A container"; |
| 18 | choice name { |
| 19 | case me { |
| 20 | leaf eight { |
| 21 | type int8; |
| 22 | description |
| 23 | "A test leaf for uint8"; |
| 24 | } |
| 25 | } |
| 26 | case myself { |
| 27 | leaf nine { |
| 28 | type int16; |
| 29 | description "i am nine"; |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | } |