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 | |||||
9 | grouping device-common { | ||||
10 | leaf node-id { | ||||
11 | type union { | ||||
12 | type leafref { | ||||
13 | path "/uri"; | ||||
14 | } | ||||
15 | type string; | ||||
16 | } | ||||
17 | description | ||||
18 | "Globally unique identifier for a device."; | ||||
19 | config true; | ||||
20 | default "open-road-m"; | ||||
21 | } | ||||
22 | } | ||||
23 | |||||
24 | list node { | ||||
25 | config false; | ||||
26 | uses device-common; | ||||
27 | } | ||||
28 | } |