From 2a759ffd2f6a4cd692fcc333ac87fd8921a5c936 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Fri, 16 Mar 2018 16:31:33 -0400 Subject: Add health check to vLBMS - Add health check to VNF components for vLB manual scale out - Update POM tree Change-Id: Id348d0cb56adf052694c6e8682b499eb1ac24af1 Issue-ID: INT-433 Signed-off-by: Marco Platania --- .../asciidoc/Readme.adoc | 3 + .../health-vnf-onap-plugin-api/pom.xml | 82 ++++++++++++++++++++++ .../src/main/yang/health-vnf-onap-plugin.yang | 64 +++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/asciidoc/Readme.adoc create mode 100644 vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/pom.xml create mode 100644 vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang (limited to 'vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api') diff --git a/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/asciidoc/Readme.adoc b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/asciidoc/Readme.adoc new file mode 100644 index 00000000..633ec6dd --- /dev/null +++ b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/asciidoc/Readme.adoc @@ -0,0 +1,3 @@ += health-vnf-onap-plugin-api + +Overview of health-vnf-onap-plugin-api \ No newline at end of file diff --git a/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/pom.xml b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/pom.xml new file mode 100644 index 00000000..d18812a1 --- /dev/null +++ b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/pom.xml @@ -0,0 +1,82 @@ + + + + + io.fd.honeycomb.common + api-parent + 1.17.07 + + + 4.0.0 + org.onap.demo.vnf.health + health-vnf-onap-plugin-api + health-vnf-onap-plugin-api + bundle + + + + org.opendaylight.mdsal.model + iana-if-type-2014-05-08 + + + org.opendaylight.mdsal.model + ietf-yang-types-20130715 + + + org.opendaylight.mdsal.model + ietf-interfaces + + + org.opendaylight.mdsal.model + ietf-inet-types-2013-07-15 + + + org.opendaylight.mdsal.model + yang-ext + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + none + + + + true + + + + maven-checkstyle-plugin + + true + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + diff --git a/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang new file mode 100644 index 00000000..621acedc --- /dev/null +++ b/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang @@ -0,0 +1,64 @@ +module health-vnf-onap-plugin { + + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:health-vnf-onap-plugin"; + prefix "health-vnf-onap-plugin"; + + description + "This YANG module defines the generic configuration and + operational data for health-vnf-onap-plugin in Honeycomb"; + + revision "2016-09-18" { + description "Initial revision of health-vnf-onap-plugin model"; + } + + container health-vnf-onap-plugin { + uses health-vnf-onap-plugin-params; + description "Configuration data of health-vnf-onap-plugin in Honeycomb"; + } + + container health-vnf-onap-plugin-state { + config false; + uses health-vnf-onap-plugin-params; + description "Operational data of health-vnf-onap-plugin persisted in Honeycomb"; + } + + grouping health-vnf-onap-plugin-params { + container health-check { + leaf vnf-name { + type string; + } + + leaf state { + type string; + } + + leaf time { + type string; + } + + container faults { + leaf info { + type string; + } + + list fault { + key vnf-component; + leaf vnf-component { + type string; + } + + leaf message { + type string; + } + } + } + } + } + + // READ + // curl -u admin:admin http://localhost:8181/restconf/config/health-vnf-onap-plugin:health-vnf-onap-plugin + + // WRITE + // curl http://localhost:8181/restconf/operational/health-vnf-onap-plugin:health-vnf-onap-plugin +} \ No newline at end of file -- cgit 1.2.3-korg