+++ /dev/null
-//-\r
-// ============LICENSE_START=======================================================\r
-// Copyright (C) 2019 Nordix Foundation.\r
-// ================================================================================\r
-// Licensed under the Apache License, Version 2.0 (the "License");\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://www.apache.org/licenses/LICENSE-2.0\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.\r
-//\r
-// SPDX-License-Identifier: Apache-2.0\r
-// ============LICENSE_END=========================================================\r
-//\r
-module A1-ADAPTER-API {\r
-\r
- namespace "org:onap:sdnc:northbound:a1-adapter";\r
-\r
- prefix a1-adapter-api;\r
-\r
- import ietf-inet-types { prefix "inet"; revision-date "2013-07-15"; }\r
-\r
- import ietf-yang-types { prefix yang; }\r
-\r
- revision "2020-01-22" {\r
- description\r
- "A1 adapter";\r
- }\r
-\r
- //Get an array of integer policy type ids\r
- //Each item in the returned array will be regarded as one policy-type-id.\r
- rpc getPolicyTypeIdentities {\r
- input {\r
- leaf near-rt-ric-url {\r
- type string;\r
- }\r
- }\r
-\r
- output {\r
- leaf-list policy-type-id-list {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- //Get an array of integer policy ids\r
- //Each item in the returned array will be regarded as one policy-id.\r
- rpc getPolicyIdentities {\r
- input {\r
- leaf near-rt-ric-url {\r
- type string;\r
- }\r
- }\r
-\r
- output {\r
- leaf-list policy-id-list {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- //Get a policy type\r
- rpc getPolicyType {\r
- input {\r
- leaf near-rt-ric-url {\r
- type string;\r
- }\r
- leaf policy-type-id {\r
- type string;\r
- }\r
- }\r
- output {\r
- leaf policy-type {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- //Create a policy\r
- rpc putPolicy {\r
- input {\r
- leaf near-rt-ric-url {\r
- type string;\r
- }\r
- leaf policy-id {\r
- type string;\r
- }\r
- leaf policy-type-id {\r
- type string;\r
- }\r
- leaf policy {\r
- type string;\r
- }\r
- }\r
- output {\r
- leaf returned-policy {\r
- type string;\r
- }\r
- }\r
- }\r
-\r
- //Delete a policy\r
- rpc deletePolicy {\r
- input {\r
- leaf near-rt-ric-url {\r
- type string;\r
- }\r
- leaf policy-id {\r
- type string;\r
- }\r
- }\r
- }\r
-}
\ No newline at end of file