blob: a69a5a1a479b466eba55715960a1f244750bb33b [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
10 identity syslog-usability {
11 description
12 "The base identity to represent syslog usabilities";
13 }
14
15 identity syslog-availability {
16 description
17 "The base identity to represent syslog availabilities";
18 }
19
20 typedef value {
21 type identityref {
22 base syslog-availability;
23 }
24 }
25
26 typedef correct {
27 type union {
28 type union {
29 type identityref {
30 base syslog-availability;
31 }
32 type value;
33 }
34 type identityref {
35 base syslog-usability;
36 }
37 }
38 }
39
40 grouping device-common {
41 leaf facility {
42 type union {
43 type union {
44 type union {
45 type identityref {
46 base syslog-usability;
47 }
48 type correct;
49 }
50 type identityref {
51 base syslog-facility;
52 }
53 }
54 type value;
55 }
56 }
57 container network-ref {
58 leaf-list facility {
59 type union {
60 type union {
61 type union {
62 type identityref {
63 base syslog-usability;
64 }
65 type correct;
66 }
67 type identityref {
68 base syslog-facility;
69 }
70 }
71 type value;
72 }
73 }
74 }
75 }
76
77 list node {
78 config false;
79 uses device-common;
80 }
81}