summaryrefslogtreecommitdiffstats
path: root/sdnr/model/yang/onf-core-model-conditional-packages@2018-04-08.yang
blob: 538ec277c9e1468ddcd4b192d56d7aba51a8f0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
module onf-core-model-conditional-packages {
  namespace "urn:onf:params:xml:ns:yang:onf-core-model-conditional-packages";
  prefix onf-core-model-conditional-packages;

  import core-model {
    prefix core-model;
  }
  import microwave-model {
    prefix microwave-model;
  }
  import ietf-inet-types {
    prefix inet;
  }

  organization
    "ONF (Open Networking Foundation) Open Transport Working Group - Wireless Transport Project";
  contact
    "WG Web: <https://www.opennetworking.org/technical-communities/areas/specification/1931-optical-transport>
     WG List:  <mailto:wireless-transport@login.opennetworking.org>
     WG Chair: Lyndon Ong
               <mailto:lyong@ciena.com>
     WG Chair: Giorgio Cazzaniga
               <mailto:giorgio.cazzaniga@sm-optics.com>
     Editors:  Thorsten Heinze
               <mailto:thorsten.heinze@telefonica.com>
               Martin Skorupski
               <mailto:martin.skorupski@highstreet-technologies.com>";
  description
    "This model adds conditional packages to the ONF CoreModel in order to support fault management for object classes NetworkElement, Equipment and Holder.";

  revision 2018-04-08 {
    description
      "Initial version, used only ONAP PoC 2018-06-25";
    reference "ONF TR 532: A YANG Data Model for Wireless Networks.";
  }

  grouping current-problem-type-g {
    leaf problem-name {
      type string;
      default "not-specified";
      config false;
      description
        "Name of the alarm according capability::supportedAlarms.";
    }
    uses microwave-model:mw-current-problem-g;
    description
      "none";
  }

  grouping network-element-current-problem-type-g {
    leaf problem-name {
      type string;
      default "not-specified";
      config false;
      description
        "Name of the alarm according capability::supportedAlarms.";
    }
    leaf object-reference {
      type string;
      config false;
      description
        "An explaining string of the related object class. This is necesseary, because the current problem list of the NetworkElement object class acts as a container for all alarms, where its object classes are not modeled.";
    }
    uses microwave-model:mw-current-problem-g;
    description
      "none";
  }

  grouping problem-severity-type-g {
    leaf problem-type-name {
      type string;
      description
        "Name of the alarm according to Capability::supportedAlarms";
    }
    leaf problem-type-severity {
      type microwave-model:severity-type;
      description
        "Severity of this type of alarm.";
    }
    description
      "none";
  }

  typedef processing-type {
    type enumeration {
      enum "done" {
        description
          "none";
      }
      enum "processing" {
        description
          "none";
      }
    }
    description
      "none";
  }

  container network-element-pac {
    leaf network-element {
      type leafref {
        path "/core-model:network-element/core-model:uuid";
      }
      description
        "none";
    }
    container network-element-capability {
      config false;
      uses network-element-capability-g;
      description
        "none";
    }
    container network-element-configuration {
      uses network-element-configuration-g;
      description
        "none";
    }
    container network-element-status {
      config false;
      uses network-element-status-g;
      description
        "none";
    }
    container network-element-current-problems {
      config false;
      uses network-element-current-problems-g;
      description
        "none";
    }
    description
      "none";
  }

  grouping network-element-capability-g {
    leaf-list supported-alarms {
      type string;
      config false;
      description
        "none";
    }
    description
      "none";
  }

  grouping network-element-configuration-g {
    list problem-type-severity-list {
      key "problem-type-name";
      uses problem-severity-type-g;
      description
        "Severity of the problem to be configured.";
    }
    leaf trigger-refresh {
      type boolean;
      description
        "A trigger to instruct the netconf server to refresh its internal database/cache. 
         It is primary used for alarms status, but could be used for anything else too. 
         It is assumed that the refresh mechanism takes some time. 
         In order to indicate the process to the controller a refreshStatus attribute is used.";
    }
    leaf connection-request-username {
      type string {
        length "1..256";
      }
      description
        "none";
    }
    leaf connection-request-password {
      type string {
        length "8..256";
      }
      description
        "none";
    }
    description
      "none";
  }

  grouping network-element-status-g {
    leaf refresh-status {
      type processing-type;
      config false;
      description
        "none";
    }
    leaf connection-request-url {
      type inet:domain-name;
      config false;
      description
        "none";
    }
    description
      "none";
  }

  grouping network-element-current-problems-g {
    list current-problem-list {
      key "sequence-number";
      config false;
      uses network-element-current-problem-type-g;
      description
        "none";
    }
    description
      "none";
  }

  list equipment-pac {
    key "equipment";
    leaf equipment {
      type leafref {
        path "/core-model:equipment/core-model:uuid";
      }
      description
        "none";
    }
    container equipment-capability {
      config false;
      uses equipment-capability-g;
      description
        "none";
    }
    container equipment-configuration {
      uses equipment-configuration-g;
      description
        "none";
    }
    container equipment-status {
      config false;
      uses equipment-status-g;
      description
        "none";
    }
    container equipment-current-problems {
      config false;
      uses equipment-current-problems-g;
      description
        "none";
    }
    description
      "none";
  }

  grouping equipment-capability-g {
    leaf-list supported-alarms {
      type string;
      config false;
      description
        "Available alarms to be listed. Names are to be separated by commas.";
    }
    description
      "none";
  }

  grouping equipment-configuration-g {
    list problem-type-severity-list {
      key "problem-type-name";
      uses problem-severity-type-g;
      description
        "Severity of the problem to be configured.";
    }
    description
      "none";
  }

  grouping equipment-status-g {
    leaf software-version {
        type string;
        config false;
        description
            "Indicates the current running software version of the equipment.";
    }
    leaf additional-software-version {
        type string;
        config false;
        description
            "Indicates the current running software version of the equipment.";
    }
    leaf up-time {
        type uint64;
        config false;
        units "s";
        description
            "Seconds since the last reboot.";
    }
    leaf local-time-zone {
        type string;
        config false;
        description
            "??? Which format ??? - +00:00 proposed";
    }
    description
      "none";
  }

  grouping equipment-current-problems-g {
    list current-problem-list {
      key "sequence-number";
      config false;
      uses current-problem-type-g;
      description
        "none";
    }
    description
      "none";
  }

  list holder-pac {
    key "holder";
    leaf holder {
      type leafref {
        path "/core-model:equipment/core-model:contained-holder/core-model:uuid";
      }
      description
        "none";
    }
    container holder-capability {
      config false;
      uses holder-capability-g;
      description
        "none";
    }
    container holder-configuration {
      uses holder-configuration-g;
      description
        "none";
    }
    container holder-status {
      config false;
      uses holder-status-g;
      description
        "none";
    }
    container holder-current-problems {
      config false;
      uses holder-current-problems-g;
      description
        "none";
    }
    description
      "none";
  }

  grouping holder-capability-g {
    leaf-list supported-alarms {
      type string;
      config false;
      description
        "Available alarms to be listed. Names are to be separated by commas.";
    }
    description
      "none";
  }

  grouping holder-configuration-g {
    list problem-type-severity-list {
      key "problem-type-name";
      uses problem-severity-type-g;
      description
        "Severity of the problem to be configured.";
    }
    description
      "none";
  }

  grouping holder-status-g {
    description
      "none";
  }

  grouping holder-current-problems-g {
    list current-problem-list {
      key "sequence-number";
      config false;
      uses current-problem-type-g;
      description
        "none";
    }
    description
      "none";
  }

  list connector-pac {
    key "connector";
    leaf connector {
      type leafref {
        path "/core-model:equipment/core-model:exposed-cable/core-model:connector/core-model:uuid";
      }
      description
        "none";
    }
    container connector-capability {
      config false;
      uses connector-capability-g;
      description
        "none";
    }
    container connector-configuration {
      uses connector-configuration-g;
      description
        "none";
    }
    container connector-status {
      config false;
      uses connector-status-g;
      description
        "none";
    }
    container connector-current-problems {
      config false;
      uses connector-current-problems-g;
      description
        "none";
    }
    description
      "none";
  }

  grouping connector-capability-g {
    leaf-list supported-alarms {
      type string;
      config false;
      description
        "Available alarms to be listed. Names are to be separated by commas.";
    }
    description
      "none";
  }

  grouping connector-configuration-g {
    list problem-type-severity-list {
      key "problem-type-name";
      uses problem-severity-type-g;
      description
        "Severity of the problem to be configured.";
    }
    leaf remote-end-point {
      type string;
      description
        "A network wide identifier of the remote connector. The value is used for topology discovery. 
         Please see also ConnectorStatus::localEndPoint.";
    }
    description
      "none";
  }

  grouping connector-status-g {
    leaf local-end-point {
      type string;
      description
        "A network wide global identifier of the this connector, which can be used to discover the physical connectivitiy.
         The value should contain the network element name, because the network element software can assume that the network element name is unique in the network. 
         The value should be formated:
         <connector:uuid>@<network-element-name>

         Please see also ConnectorConfiguration::remoteEndPoint";
    }
    description
      "none";
  }

  grouping connector-current-problems-g {
    list current-problem-list {
      key "sequence-number";
      config false;
      uses current-problem-type-g;
      description
        "none";
    }
    description
      "none";
  }
}