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";
30 import ietf-inet-types {
48 "Update model to support projects.";
56 typedef config-agent-account-type {
57 description "config agent account type";
64 augment "/rw-project:project" {
65 container config-agent {
66 rwpb:msg-new ConfigAgent;
69 rwpb:msg-new ConfigAgentAccount;
72 description "List of configuration agent accounts";
75 description "Name of this config agent account";
81 "Default account type is Rift Configuration Agent (RiftCA)";
82 type config-agent-account-type;
86 choice config-agent-account-type {
89 "Configure the VNF through Juju.";
92 description "Juju host IP address.";
97 "Juju host port number. Default 17070.";
98 type inet:port-number;
103 "User name to connect to Juju host. Default user-admin.";
105 default "user-admin" ;
109 "Admin secret or password for Juju host.";
115 uses rwcal:connection-status;
120 rpc update-cfg-agent-status {
121 description "Begin config agent account connection status";
123 leaf cfg-agent-account {
126 "The config agent account name to update connection status for";
130 uses manotypes:rpc-project-name;