4 * Copyright 2016-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-config-agent
23 namespace "http://riftio.com/ns/riftware-1.0/rw-config-agent";
24 prefix "rw-config-agent";
26 import ietf-inet-types {
44 "Update model to support projects.";
52 typedef config-agent-account-type {
53 description "config agent account type";
60 augment "/rw-project:project" {
61 container config-agent {
65 description "List of configuration agent accounts";
68 description "Name of this config agent account";
74 "Default account type is Rift Configuration Agent (RiftCA)";
75 type config-agent-account-type;
79 choice config-agent-account-type {
82 "Configure the VNF through Juju.";
85 description "Juju host IP address.";
90 "Juju host port number. Default 17070.";
91 type inet:port-number;
96 "User name to connect to Juju host. Default user-admin.";
98 default "user-admin" ;
102 "Admin secret or password for Juju host.";
108 uses rwcal:connection-status;
113 rpc update-cfg-agent-status {
114 description "Begin config agent account connection status";
116 leaf cfg-agent-account {
119 "The config agent account name to update connection status for";
123 uses manotypes:rpc-project-name;