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 served-by { type string; }
\r
97 leaf site1-health { type string; }
\r
98 leaf site2-health { type string; }
\r
105 rpc database-health {
\r
107 "Uses DbLibService connection info to determine if the database is reachable.";
\r
109 leaf status { type string; }
\r
110 leaf health { type string; }
\r
111 leaf served-by { type string; }
\r
117 "Pings the admin portal health check to determine if the admin portal is reachable.";
\r
119 leaf status { type string; }
\r
120 leaf health { type string; }
\r
121 leaf served-by { type string; }
\r
127 "Gathers health information on the ODL cluster, database, and admin portal
\r
128 to determine if the entire site is in a healthy state.";
\r
130 leaf status { type string; }
\r
131 leaf served-by { type string; }
\r
138 rpc site-identifier {
\r
140 "Returns the unique site identifier.";
\r
142 leaf status { type string; }
\r
143 leaf served-by { type string; }
\r
144 leaf id { type string; mandatory true; }
\r
148 rpc halt-akka-traffic {
\r
150 "Executes IP Tables commands to halt traffic to the akka port.";
\r
157 leaf status { type string; }
\r
158 leaf served-by { type string; }
\r
162 rpc resume-akka-traffic {
\r
164 "Executes IP Tables commands to resume traffic to the akka port.";
\r
171 leaf status { type string; }
\r
172 leaf served-by { type string; }
\r
178 "Performs a failover from primary site to standby site.";
\r
188 leaf downUnreachable {
\r
194 leaf status { type string; }
\r
195 leaf message { type string; }
\r
196 leaf served-by { type string; }
\r