4 * Copyright 2016 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 {
43 typedef config-agent-account-type {
44 description "config agent account type";
51 container config-agent {
52 rwpb:msg-new ConfigAgent;
55 rwpb:msg-new ConfigAgentAccount;
58 description "List of configuration agent accounts";
61 description "Name of this config agent account";
67 "Default account type is Rift Configuration Agent (RiftCA)";
68 type config-agent-account-type;
72 choice config-agent-account-type {
75 "Configure the VNF through Juju.";
78 description "Juju host IP address.";
83 "Juju host port number. Default 17070.";
84 type inet:port-number;
89 "User name to connect to Juju host. Default user-admin.";
91 default "user-admin" ;
95 "Admin secret or password for Juju host.";
101 uses rwcal:connection-status;
105 rpc update-cfg-agent-status {
106 description "Begin config agent account connection status";
108 leaf cfg-agent-account {
111 "The config agent account name to update connection status for";