surya-huawei | 7c6d536 | 2017-06-09 10:54:17 +0530 | [diff] [blame] | 1 | module TestUnique { |
2 | yang-version 1; | ||||
3 | namespace http://huawei.com; | ||||
4 | prefix Anim; | ||||
5 | list resources { | ||||
6 | key "count"; | ||||
7 | leaf count { | ||||
8 | type int; | ||||
9 | } | ||||
10 | unique "animal/mammal/abc"; | ||||
11 | container animal { | ||||
12 | list mammal { | ||||
13 | key "abc"; | ||||
14 | leaf abc { | ||||
15 | type "String"; | ||||
16 | } | ||||
17 | } | ||||
18 | } | ||||
19 | } | ||||
20 | } |