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; |
| 5 | list valid { |
| 6 | key address; |
| 7 | leaf address { |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 8 | type P:ip; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 9 | } |
| 10 | grouping endpoint { |
| 11 | description "grouping under test"; |
| 12 | status current; |
| 13 | reference "RFC 6020"; |
| 14 | leaf address { |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 15 | type P:ip-address; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 16 | } |
| 17 | leaf port { |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 18 | type P:port-number; |
Gaurav Agrawal | f6ccc97 | 2016-03-25 11:25:36 +0530 | [diff] [blame] | 19 | } |
| 20 | } |
| 21 | } |
| 22 | } |