Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 1 | module Test { |
2 | yang-version 1; | ||||
3 | namespace http://huawei.com; | ||||
4 | prefix Ant; | ||||
Vinod Kumar S | f677daf | 2016-04-15 18:08:57 +0530 | [diff] [blame] | 5 | import ietf-yang-types { |
6 | prefix "P"; | ||||
7 | } | ||||
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 8 | list valid { |
9 | key address; | ||||
10 | leaf address { | ||||
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 11 | type P:ip; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 12 | } |
13 | grouping endpoint { | ||||
14 | description "grouping under test"; | ||||
15 | status current; | ||||
16 | reference "RFC 6020"; | ||||
17 | leaf address { | ||||
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 18 | type P:ip-address; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 19 | } |
20 | leaf port { | ||||
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 21 | type P:port-number; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 22 | } |
23 | } | ||||
24 | } | ||||
25 | } |