blob: 9fbc0246c09f097a26cfe8f51e014ec5675e9984 [file] [log] [blame]
janani b4b5f88c2016-10-06 00:00:33 +05301module org-open-road-m-device {
2 namespace "http://org/openroadm/device";
3 prefix org-open-road-m-device;
4
5 identity syslog-facility {
6 description
7 "The base identity to represent syslog facilities";
8 }
9 typedef value {
10 type identityref {
11 base syslog-facility;
12 }
13 }
14
15 grouping device-common {
16 leaf facility {
17 type union {
18 type identityref {
19 base syslog-facility;
20 }
21 type enumeration {
22 enum "all" {
23 description
24 "This enum describes the case where all
25 facilities are requested.";
26 }
27 }
28 }
29 }
30 leaf node-id {
31 type identityref {
32 base syslog-facility;
33 }
34 description
35 "Globally unique identifier for a device.";
36 config true;
37 }
38 leaf-list node-ref {
39 type value;
40 }
41 container network-ref {
42 leaf-list facility {
43 type union {
44 type identityref {
45 base syslog-facility;
46 }
47 type enumeration {
48 enum "all" {
49 description
50 "This enum describes the case where all
51 facilities are requested.";
52 }
53 }
54 }
55 }
56 leaf-list node-ref {
57 type identityref {
58 base syslog-facility;
59 }
60 description
61 "Globally unique identifier for a device.";
62 config true;
63 }
64 leaf node-id {
65 type value;
66 }
67 }
68 }
69
70 list node {
71 config false;
72 uses device-common;
73 }
74}