SOL006 augment: KDU support for helm v3
[osm/IM.git] / models / augments / alarm.yang
1 /*
2   Copyright 2020 Whitestack LLC
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16 */
17
18 module alarm {
19     yang-version 1.1;
20     namespace "urn:etsi:osm:yang:augments:alarm";
21     prefix "alarm";
22
23     import etsi-nfv-vnfd {
24         prefix vnfd;
25     }
26
27     import common-augments {
28         prefix common;
29     }
30
31     grouping extended-alarm {
32         list alarm {
33           key "alarm-id";
34
35           leaf alarm-id {
36             description
37                   "This field is reserved for the identifier assigned by the VIM provider";
38
39             type string;
40           }
41
42
43           leaf vnf-monitoring-param-ref {
44               description
45                  "Reference to the VNF level monitoring parameter
46                   that is aggregated";
47               type leafref {
48                 path "/vnfd:vnfd/vnfd:df/vnfd:monitoring-parameter/vnfd:id";
49               }
50           }
51
52           uses common:alarm-properties;
53         }
54         
55     }
56
57     augment "/vnfd:vnfd/vnfd:vdu" {
58         uses extended-alarm;
59     }
60 }
61
62
63
64
65
66
67
68
69
70