2 namespace "org:onap:ccsdk:sli:plugins:gr-toolkit";
\r
5 import ietf-inet-types {
\r
8 import ietf-yang-types {
\r
12 "This ODL feature is designed to gauge the health of all cluster members.";
\r
13 revision "2018-09-26" {
\r
15 "Release 19.02 draft";
\r
51 list commit-status {
\r
89 rpc cluster-health {
\r
91 "Parses akka.conf for seed nodes and queries Jolokia for the health
\r
94 leaf status { type string; }
\r
95 leaf message { type string; }
\r
96 leaf site1-health { type string; }
\r
97 leaf site2-health { type string; }
\r
104 rpc database-health {
\r
106 "Uses DbLibService connection info to determine if the database is reachable.";
\r
108 leaf status { type string; }
\r
109 leaf health { type string; }
\r
115 "Pings the admin portal health check to determine if the admin portal is reachable.";
\r
117 leaf status { type string; }
\r
118 leaf health { type string; }
\r
124 "Gathers health information on the ODL cluster, database, and admin portal
\r
125 to determine if the entire site is in a healthy state.";
\r
127 leaf status { type string; }
\r
134 rpc site-identifier {
\r
136 "Returns the unique site identifier.";
\r
138 leaf status { type string; }
\r
139 leaf id { type string; mandatory true; }
\r
143 rpc halt-akka-traffic {
\r
145 "Executes IP Tables commands to halt traffic to the akka port.";
\r
152 leaf status { type string; }
\r
156 rpc resume-akka-traffic {
\r
158 "Executes IP Tables commands to resume traffic to the akka port.";
\r
165 leaf status { type string; }
\r
171 "Performs a failover from primary site to standby site.";
\r
181 leaf downUnreachable {
\r
187 leaf status { type string; }
\r
188 leaf message { type string; }
\r