This commit consists of:
1) Dockerizing the netconf server
2) Update proto2yang to support module imports
3) Provide a set of yang modules derived from the proto files in voltha.
These files as well as the slight mmodifications to the proto files are
provided in the experiments/netconf/proto2yang directory
4) Code to automatically pull proto files from voltha into the netconf server,
compiles them and produce the yang equivalent files.
5) Add a getvoltha netconf API to provide voltha state information (basic at
this time). There is potential to make this generic once we experiment
with additional APIs
Change-Id: I94f3a1f871b8025ad675d5f9b9b626d1be8b8d36
diff --git a/experiments/netconf/proto2yang/ietf-health.yang b/experiments/netconf/proto2yang/ietf-health.yang
new file mode 100644
index 0000000..e79c30a
--- /dev/null
+++ b/experiments/netconf/proto2yang/ietf-health.yang
@@ -0,0 +1,65 @@
+
+module ietf-health {
+
+
+ namespace "urn:opencord:params:xml:ns:voltha:ietf-health";
+ prefix health;
+
+ import ietf-empty { prefix empty ; }
+
+ organization "CORD";
+ contact
+ " Any name";
+
+ description
+ "";
+
+ revision "2016-11-15" {
+ description "Initial revision.";
+ reference "reference";
+ }
+
+
+ grouping HealthStatus {
+ description
+ "Encode health status of a Voltha instance";
+ leaf state {
+ type HealthState;
+ description
+ "Current state of health of this Voltha instance";
+ }
+
+ typedef HealthState {
+ type enumeration {
+ enum HEALTHY {
+ description "";
+ }
+ enum OVERLOADED {
+ description "";
+ }
+ enum DYING {
+ description "";
+ }
+ }
+ description
+ "Health states";
+ }
+
+ }
+
+ /* Health related services" */
+ rpc HealthService-GetHealthStatus {
+ description
+ "Return current health status of a Voltha instance";
+ input {
+ uses empty:Empty;
+
+ }
+ output {
+ uses HealthStatus;
+
+ }
+ }
+
+
+}
\ No newline at end of file