janani b | 4e53f9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 1 | module Test { |
2 | yang-version 1; | ||||
3 | namespace http://huawei.com; | ||||
4 | prefix Ant; | ||||
5 | grouping Percentage { | ||||
Gaurav Agrawal | cfa1c41 | 2016-05-03 00:41:48 +0530 | [diff] [blame] | 6 | leaf hello{ |
7 | type string; | ||||
janani b | 4e53f9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 8 | } |
9 | } | ||||
10 | container ospf { | ||||
11 | list valid { | ||||
12 | key "invalid"; | ||||
Gaurav Agrawal | cfa1c41 | 2016-05-03 00:41:48 +0530 | [diff] [blame] | 13 | leaf invalid{ |
14 | type string; | ||||
janani b | 4e53f9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 15 | } |
16 | uses Ant:FirstClass; | ||||
17 | grouping FirstClass { | ||||
18 | uses PassingClass; | ||||
19 | } | ||||
20 | } | ||||
21 | grouping PassingClass { | ||||
22 | uses Ant:Percentage; | ||||
23 | } | ||||
24 | } | ||||
25 | } |