janani b | 06eca9b | 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 | import ietf-yang-types { | ||||
6 | prefix "P"; | ||||
7 | } | ||||
8 | grouping Percentage { | ||||
9 | leaf hello{ | ||||
Gaurav Agrawal | cc55d48 | 2016-05-03 00:41:48 +0530 | [diff] [blame] | 10 | type string; |
janani b | 06eca9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 11 | } |
12 | } | ||||
13 | container ospf { | ||||
14 | list valid { | ||||
15 | key "invalid"; | ||||
Gaurav Agrawal | cc55d48 | 2016-05-03 00:41:48 +0530 | [diff] [blame] | 16 | leaf invalid{ |
17 | type string; | ||||
janani b | 06eca9b | 2016-04-26 18:49:20 +0530 | [diff] [blame] | 18 | } |
19 | uses Ant:FirstClass; | ||||
20 | grouping FirstClass { | ||||
21 | uses P:PassingClass; | ||||
22 | } | ||||
23 | } | ||||
24 | grouping PassingClass { | ||||
25 | uses Ant:Percentage; | ||||
26 | } | ||||
27 | } | ||||
28 | } |