Patrick Brady | 10bba35 | 2017-07-19 12:09:28 -0700 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * ONAP : APPC |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | * ================================================================================ |
| 7 | * Copyright (C) 2017 Amdocs |
| 8 | * ============================================================================= |
| 9 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | * you may not use this file except in compliance with the License. |
| 11 | * You may obtain a copy of the License at |
| 12 | * |
| 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | * |
| 15 | * Unless required by applicable law or agreed to in writing, software |
| 16 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | * See the License for the specific language governing permissions and |
| 19 | * limitations under the License. |
| 20 | * |
| 21 | * ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 22 | * ============LICENSE_END========================================================= |
| 23 | */ |
| 24 | |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 25 | /* |
| 26 | * Yang model for the OAM component of Application Controller (APP-C) component of ONAP |
| 27 | * |
| 28 | * This model is used to define the data and services of the OAM component of APP-C. |
| 29 | * |
| 30 | * The services exposed by this component are: |
| 31 | * |
| 32 | * get-metrics: |
| 33 | * Used to retrieve current metric data from APP-C. |
| 34 | * |
| 35 | */ |
| 36 | |
| 37 | module appc-oam { |
| 38 | |
| 39 | yang-version 1; |
| 40 | namespace "org:openecomp:appc:oam"; |
| 41 | prefix appc-oam; |
| 42 | organization "Copyright 2017 AT&T Intellectual Property."; |
| 43 | |
| 44 | description |
| 45 | "Defines the services and request/response requirements for the |
| 46 | APP-C OAM component."; |
| 47 | |
| 48 | /* |
| 49 | * Note, the revision changes the package name of the generated java code. Do not |
| 50 | * change the revision unless you also update all references to the bindings. |
| 51 | */ |
| 52 | revision "2017-03-03" { |
| 53 | description |
| 54 | "APP-C OAM interface version 1.5.00"; |
| 55 | } |
| 56 | |
| 57 | grouping common-header { |
| 58 | description "A common header for all APP-C requests"; |
| 59 | container common-header { |
| 60 | description "A common header for all APP-C requests"; |
| 61 | |
| 62 | leaf originator-id { |
| 63 | description "originator-id an identifier of the calling system which can be |
| 64 | used addressing purposes, i.e. returning asynchronous response |
| 65 | to the proper destination over UEB (especially in case of multiple |
| 66 | consumers of APP-C APIs)"; |
| 67 | type string; |
| 68 | mandatory true; |
| 69 | } |
| 70 | |
| 71 | leaf request-id { |
| 72 | description "UUID for the request ID. An OSS/BSS identifier for the request |
| 73 | that caused the current action. Multiple API calls may be made |
| 74 | with the same request-id The request-id shall be recorded throughout |
| 75 | the operations on a single request"; |
| 76 | type string; |
| 77 | mandatory true; |
| 78 | } |
| 79 | |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | grouping status { |
| 84 | description "The specific response codes are to be aligned with ASDC reference |
| 85 | doc (main table removed to avoid duplication and digression from |
| 86 | main table). See ASDC and ECOMP Distribution Consumer Interface |
| 87 | Agreement"; |
| 88 | container status { |
| 89 | description "The specific response codes are to be aligned with ASDC reference |
| 90 | doc (main table removed to avoid duplication and digression from |
| 91 | main table). See ASDC and ECOMP Distribution Consumer Interface |
| 92 | Agreement"; |
| 93 | leaf code { |
| 94 | description "Response code"; |
| 95 | type uint16; |
| 96 | mandatory true; |
| 97 | } |
| 98 | leaf message { |
| 99 | description "Response message"; |
| 100 | type string; |
| 101 | mandatory true; |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | rpc get-metrics { |
| 107 | description "An operation to get list of registered Metrics in APP-C"; |
| 108 | output { |
| 109 | list metrics { |
| 110 | key kpi-name; |
| 111 | description "KPI metrics definition"; |
| 112 | leaf kpi-name { |
| 113 | description "metrics name"; |
| 114 | type string; |
| 115 | mandatory true; |
| 116 | } |
| 117 | leaf last-reset-time { |
| 118 | description "Last reset time"; |
| 119 | type string; |
| 120 | mandatory true; |
| 121 | } |
| 122 | list kpi-values { |
| 123 | key name; |
| 124 | description "KPI properties in form of key value pairs"; |
| 125 | leaf name { |
| 126 | description "KPI property name"; |
| 127 | type string; |
| 128 | } |
| 129 | leaf value { |
| 130 | description "KPI property value"; |
| 131 | type string; |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | rpc stop { |
| 139 | description "An operation that disables appc-provider-lcm so that it no longer accepts LCM request. This |
| 140 | operation has no impact on queued and currently executing LCM request. A notification will be |
| 141 | sent out indicating the APP-C is idle once all LCM request have completed execution. "; |
| 142 | input { |
| 143 | uses common-header; |
| 144 | } |
| 145 | output { |
| 146 | uses common-header; |
| 147 | uses status; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | rpc start { |
| 152 | description "An operation that enables appc-provider-lcm so that it can begin to accepts LCM request. "; |
| 153 | input { |
| 154 | uses common-header; |
| 155 | } |
| 156 | output { |
| 157 | uses common-header; |
| 158 | uses status; |
| 159 | } |
| 160 | } |
| 161 | } |