aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-03-16 16:31:33 -0400
committerMarco Platania <platania@research.att.com>2018-03-16 16:31:33 -0400
commit2a759ffd2f6a4cd692fcc333ac87fd8921a5c936 (patch)
tree93f1bf1f259e4443ae0dea903710679e59f27353 /vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api
parent4a76de616e000bdfcf25262bf09cfa373c6226af (diff)
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 <platania@research.att.com>
Diffstat (limited to 'vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api')
-rw-r--r--vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/asciidoc/Readme.adoc3
-rw-r--r--vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/pom.xml82
-rw-r--r--vnfs/vLBMS/apis/health-vnf-onap-plugin/health-vnf-onap-plugin-api/src/main/yang/health-vnf-onap-plugin.yang64
3 files changed, 149 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2015 Cisco and/or its affiliates.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>io.fd.honeycomb.common</groupId>
+ <artifactId>api-parent</artifactId>
+ <version>1.17.07</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.onap.demo.vnf.health</groupId>
+ <artifactId>health-vnf-onap-plugin-api</artifactId>
+ <name>health-vnf-onap-plugin-api</name>
+ <packaging>bundle</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>iana-if-type-2014-05-08</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>ietf-yang-types-20130715</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>ietf-interfaces</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>ietf-inet-types-2013-07-15</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>yang-ext</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
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