janani b | 4b5f88c | 2016-10-06 00:00:33 +0530 | [diff] [blame] | 1 | module org-open-road-m-device { |
2 | namespace "http://org/openroadm/device"; | ||||
3 | prefix org-open-road-m-device; | ||||
4 | |||||
5 | leaf uri { | ||||
6 | type string; | ||||
7 | } | ||||
8 | leaf-list id { | ||||
9 | type value; | ||||
10 | } | ||||
11 | typedef value { | ||||
12 | type uint8; | ||||
13 | } | ||||
14 | |||||
15 | grouping device-common { | ||||
16 | leaf node-id { | ||||
17 | type leafref { | ||||
18 | path "/uri"; | ||||
19 | } | ||||
20 | description | ||||
21 | "Globally unique identifier for a device."; | ||||
22 | config true; | ||||
23 | default "open-road-m"; | ||||
24 | } | ||||
25 | leaf-list node-ref { | ||||
26 | type leafref { | ||||
27 | path "/id"; | ||||
28 | } | ||||
29 | } | ||||
30 | container network-ref { | ||||
31 | leaf node-id { | ||||
32 | type leafref { | ||||
33 | path "/id"; | ||||
34 | } | ||||
35 | description | ||||
36 | "Globally unique identifier for a device."; | ||||
37 | config true; | ||||
38 | default "open-road-m"; | ||||
39 | } | ||||
40 | leaf-list node-ref { | ||||
41 | type leafref { | ||||
42 | path "/uri"; | ||||
43 | } | ||||
44 | } | ||||
45 | } | ||||
46 | } | ||||
47 | |||||
48 | list node { | ||||
49 | config false; | ||||
50 | uses device-common; | ||||
51 | } | ||||
52 | } |