+++ /dev/null
-module test-augment-choice-case {\r
- yang-version 1;\r
- namespace "urn:test:augment:choice:case";\r
- prefix "augtestchoice";\r
-\r
- revision "2014-3-13" {\r
- description\r
- "Initial revision";\r
- }\r
-\r
-\r
- container container {\r
- choice ch2{}\r
- choice ch3{\r
- case c3 {\r
- leaf c3Leaf {\r
- type string;\r
- }\r
- }\r
- }\r
- }\r
-\r
- augment "/container/" {\r
- leaf augLeaf {\r
- type string;\r
- }\r
- }\r
-\r
- augment "/container/" {\r
- choice ch{}\r
- }\r
-\r
- augment "/container/ch/" {\r
- case c1 {\r
- leaf c1Leaf {\r
- type string;\r
- }\r
- }\r
-\r
- leaf c12 {\r
- type string;\r
- }\r
- }\r
- augment "/container/ch/c1/" {\r
- leaf c1Leaf_AnotherAugment {\r
- type string;\r
- }\r
-\r
- choice deepChoice{}\r
- }\r
-\r
- augment "/container/ch3/" {\r
- case c32 {\r
- leaf c32Leaf {\r
- type string;\r
- }\r
- }\r
-\r
- leaf c34LeafS {\r
- type string;\r
- }\r
- }\r
-\r
-\r
- augment "/container/ch/c1/deepChoice/" {\r
- case deepCase1 {\r
- leaf deepLeafc1 {\r
- type string;\r
- }\r
- }\r
- case deepCase2 {\r
- leaf deepLeafc2 {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- augment "/container/ch2/" {\r
- case c2 {\r
- leaf c2Leaf {\r
- type string;\r
- }\r
-\r
- choice c2DeepChoice {\r
- case c2DeepChoiceCase1 {\r
- leaf c2DeepChoiceCase1Leaf1 {\r
- type string;\r
- }\r
- }\r
- case c2DeepChoiceCase2 {\r
- leaf c2DeepChoiceCase1Leaf2 {\r
- type string;\r
- }\r
- }\r
- }\r
- }\r
- }\r
-\r
- augment "/container/ch2/" {\r
- leaf c22Leaf {\r
- type string;\r
- }\r
- }\r
-\r
- augment "/container" {\r
- /*ext:augment-identifier top-choice-augment1;*/\r
- choice augment-choice1 {\r
- case case1 {\r
- container case1-container {\r
- leaf case1-leaf {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- case case2 {\r
- container case2-container {\r
- leaf case2-leaf {\r
- type string;\r
- }\r
- }\r
- }\r
- }\r
- }\r
-\r
- augment "/container/augment-choice1/case1" {\r
- /*ext:augment-identifier top-choice-augment2;*/\r
- choice augment-choice2 {\r
- case case11 {\r
- container case11-choice-case-container {\r
- leaf case11-choice-case-leaf {\r
- type string;\r
- }\r
- }\r
- }\r
- }\r
- }\r
-\r
-\r
-}
\ No newline at end of file