X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=data-model%2Fyang%2Fworking%2Fo-ran-sc%2Fnear-rt-ric%2Fo-ran-sc-ric-xapp-desc-v1.yang;h=2850150428cf3b016765bb547ba13c2c8f406223;hb=721c2220ae37136b8d62533c5ba31d4f2bd409d8;hp=9e535783ea2f05099dfe40fe721fdae8d7ab56bf;hpb=44672234a0d9ed7dc29c10dca36c7829997c689d;p=scp%2Foam%2Fmodeling.git diff --git a/data-model/yang/working/o-ran-sc/near-rt-ric/o-ran-sc-ric-xapp-desc-v1.yang b/data-model/yang/working/o-ran-sc/near-rt-ric/o-ran-sc-ric-xapp-desc-v1.yang index 9e53578..2850150 100644 --- a/data-model/yang/working/o-ran-sc/near-rt-ric/o-ran-sc-ric-xapp-desc-v1.yang +++ b/data-model/yang/working/o-ran-sc/near-rt-ric/o-ran-sc-ric-xapp-desc-v1.yang @@ -1,105 +1,115 @@ module o-ran-sc-ric-xapp-desc-v1 { - yang-version 1.1; - namespace "urn:o-ran:ric:xapp-desc:1.0"; - prefix rxad; + yang-version 1.1; + namespace "urn:o-ran-sc:yang:o-ran-sc-ric-xapp-desc-v1"; + prefix rxad; - import o-ran-sc-root-v1 { - prefix root; - } - import o-ran-sc-types-v1 { - prefix ot; - } + import o-ran-sc-root-v1 { + prefix root; + } + import o-ran-sc-types-v1 { + prefix ot; + } + + organization + "O-RAN Software Community"; + contact + "www.o-ran.org"; + description + "This module defines a generic xApp descriptor used for + xApp lifecycle management + + Copyright 2021 the O-RAN Software Community. + + Licensed under the Apache License, Version 2.0 (the 'License'); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an 'AS IS' BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License."; - organization - "O-RAN Software Community"; - contact - "www.o-ran.org"; + revision 2021-03-09 { description - "This module defines a generic xApp descriptor used for - xApp lifecycle management - - Copyright 2020 the O-RAN Alliance. - - Licensed under the Apache License, Version 2.0 (the 'License'); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an 'AS IS' BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License."; + "The namespace was updated according to O-RAN-SC yang guidelines. + The namespace must end with the full module name."; + reference + "https://jira.o-ran-sc.org/browse/OAM-168"; + } + revision 2020-02-25 { + description + "Dependency to a common and abstract root module added."; + reference + "O-RAN-OAM-architecture-Specification (O1)"; + } + revision 2020-01-29 { + description + "initial revision"; + reference + "O-RAN-OAM-Interface-Specification (O1)"; + } - revision 2020-02-25 { - description - "Dependency to a common and abstract root module added."; - reference - "O-RAN-OAM-architecture-Specification (O1)"; + // identity + + identity near-realtime-ran-intelligent-controller { + base ot:control-function-type; + description + "Defines the identitiy near-rt-ric as contoll-function type."; + } + + // grouping + // LCM: Generic xApp descriptor passed to xApp Manager (or OCO) during xApp deployment/undeployment + + grouping xapp-descriptor { + uses root:control-base-grp; + leaf release-name { + type string; + description + "Name of the xapp to be visible in Kubernetes"; } - revision 2020-01-29 { - description - "initial revision"; - reference - "O-RAN-OAM-Interface-Specification (O1)"; + leaf version { + type string; + description + "The exact xapp helm chart version to install"; } - - // identity - identity near-realtime-ran-intelligent-controller { - base ot:control-function-type; - description - "Defines the identitiy near-rt-ric as contoll-function type."; + leaf namespace { + type string; + description + "Name of the namespace to which xApp is deployed in Kubernetes"; + } + leaf override-file { + type string; + description + "JSON string of override file for 'helm install' command"; } + description + "xApp descriptor"; + } - // grouping - // LCM: Generic xApp descriptor passed to xApp Manager (or OCO) during xApp deployment/undeployment - grouping xapp-descriptor { - uses root:control-base-grp; - leaf release-name { - type string; - description - "Name of the xapp to be visible in Kubernetes"; - } - leaf version { - type string; - description - "The exact xapp helm chart version to install"; - } - leaf namespace { - type string; - description - "Name of the namespace to which xApp is deployed in Kubernetes"; - } - leaf override-file { - type string; - description - "JSON string of override file for 'helm install' command"; - } + grouping ric-specific-grp { + container xapps { + list xapp { + key "name"; + uses xapp-descriptor; description "xApp descriptor"; + } + description + "List of xApps to be managed."; } + description + "Groups xApps realted artifacts. "; + } - grouping ric-specific-grp { - container xapps { - list xapp { - key "name"; - uses xapp-descriptor; - description - "xApp descriptor"; - } - description - "List of xApps to be managed."; - } - description - "Groups xApps realted artifacts. "; - } + // Inherit from controlled-function - // Inherit from controlled-function - augment "/root:controlled-element/root:controlled-function" { - when "derived-from-or-self(./root:function-type, 'rxad:near-realtime-ran-intelligent-controller')"; - uses ric-specific-grp; - description - "Inheritance from root object class."; - } -} \ No newline at end of file + augment "/root:controlled-element/root:controlled-function" { + when "derived-from-or-self(./root:function-type, 'rxad:near-realtime-ran-intelligent-controller')"; + uses ric-specific-grp; + description + "Inheritance from root object class."; + } +}