4 * Copyright 2017 RIFT.IO Inc
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 module rw-ro-account {
23 namespace "http://riftio.com/ns/riftware-1.0/rw-ro-account";
24 prefix "rw-ro-account";
26 import ietf-yang-types {
43 typedef resource-orchestrator-account-type {
44 description "RO account type";
51 typedef connection-status {
52 description "Connection status for the RO account";
61 augment "/rw-project:project" {
62 container ro-account {
65 description "Configure RO Accounts";
71 leaf ro-account-type {
72 type resource-orchestrator-account-type;
75 choice resource-orchestrator {
77 "The resource orchestrator to use by the Launchpad";
107 augment "/rw-project:project" {
108 container ro-account-state {
113 description "RO Account Operational State";
119 container connection-status {
121 type connection-status;
128 container instance-ref-count{
131 description "No of NSD that got instantiated using this RO account";
135 container datacenters {
140 description "The UUID of the data center";
145 description "The name of the data center";
151 description "The type for the data center";
152 type manotypes:cloud-account-type;
157 container config-data{
158 leaf ro-account-type {
167 rpc update-ro-account-status {
168 description "update ro account connection status";
173 "The RO account name to update connection status for";
176 uses manotypes:rpc-project-name;