From 08eddb8df44beacbb7b4047e313a771292030ccc Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Apr 2020 21:53:00 +0000 Subject: Initial VES for DANOS vRouter 1. Create vpp_measurement_reporter that use DANOS configd query to retrieve statistics and libevel to transmit 2. Copy VES evel library to build a debian package under vpp_measurement_report 3. Add debian files to create a vpp_measurement_reporter + libevel debian package 4. Add debian install and systemctl start files 5. Add instruction to build VES reporter debian package (that will include libevel.so) 6. Add instructions to build DANOS ISO with VES reporter debian package and creating glance image Issue-ID: INT-1566 Change-Id: If18f16525f07f1b6bae0fc105e0452263b4bf661 Signed-off-by: Brian Freeman --- vnfs/VESreporting_vFW5.0_DANOS/debian/changelog | 5 +++++ vnfs/VESreporting_vFW5.0_DANOS/debian/compat | 1 + vnfs/VESreporting_vFW5.0_DANOS/debian/control | 20 ++++++++++++++++++++ vnfs/VESreporting_vFW5.0_DANOS/debian/copyright | 19 +++++++++++++++++++ vnfs/VESreporting_vFW5.0_DANOS/debian/rules | 6 ++++++ vnfs/VESreporting_vFW5.0_DANOS/debian/source/format | 1 + .../debian/vpp-measurement-reporter-danos.install | 5 +++++ .../debian/vpp-measurement-reporter-danos.service | 10 ++++++++++ 8 files changed, 67 insertions(+) create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/changelog create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/compat create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/control create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/copyright create mode 100755 vnfs/VESreporting_vFW5.0_DANOS/debian/rules create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/source/format create mode 100755 vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.install create mode 100644 vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.service (limited to 'vnfs/VESreporting_vFW5.0_DANOS/debian') diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/changelog b/vnfs/VESreporting_vFW5.0_DANOS/debian/changelog new file mode 100644 index 00000000..8870dcb9 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/changelog @@ -0,0 +1,5 @@ +vpp-measurement-reporter-danos (0.1) unstable; urgency=medium + + * Initial create + + -- Brian Freeman Tue, 21 Apr 2020 10:57:54 +0000 diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/compat b/vnfs/VESreporting_vFW5.0_DANOS/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/compat @@ -0,0 +1 @@ +9 diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/control b/vnfs/VESreporting_vFW5.0_DANOS/debian/control new file mode 100644 index 00000000..0b284738 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/control @@ -0,0 +1,20 @@ +Source: vpp-measurement-reporter-danos +Section: contrib/net +Priority: optional +Maintainer: Brian Freeman +Build-depends: + debhelper (>= 9), + dh-exec, + libvyatta-cfg-dev, + libcurl4-dev, + libjansson-dev, +Standards-Version: 3.9.8 + +Package: vpp-measurement-reporter-danos +Architecture: any +Depends: ${misc:Depends}, dh-exec, libvyatta-cfg1, ${shlibs:Depends} +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Description: ONAP VES Event Library for vFW Closed Loop Demonstration + VES reporting library + diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/copyright b/vnfs/VESreporting_vFW5.0_DANOS/debian/copyright new file mode 100644 index 00000000..83ac7724 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/copyright @@ -0,0 +1,19 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2018-2020, AT&T Intellectual Property. +License: Apache-2.0 + 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. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/rules b/vnfs/VESreporting_vFW5.0_DANOS/debian/rules new file mode 100755 index 00000000..1bd1ef41 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ --with=systemd diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/source/format b/vnfs/VESreporting_vFW5.0_DANOS/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.install b/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.install new file mode 100755 index 00000000..0d81653e --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.install @@ -0,0 +1,5 @@ +#!/usr/bin/dh-exec +dcae_collector.env run/VES/ +evel/evel-library/libs/x86_64/libevel.so usr/lib/${DEB_HOST_MULTIARCH} +onap-ca.crt opt/VES/config +vpp-measurement-reporter-danos opt/VES/bin/ diff --git a/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.service b/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.service new file mode 100644 index 00000000..7d5b0ba4 --- /dev/null +++ b/vnfs/VESreporting_vFW5.0_DANOS/debian/vpp-measurement-reporter-danos.service @@ -0,0 +1,10 @@ +[Unit] +Description=ONAP VES Reporting + +[Service] +EnvironmentFile=/run/VES/dcae_collector.env +ExecStart=/opt/VES/bin/vpp-measurement-reporter-danos $DCAE_COLLECTOR_IP $DCAE_COLLECTOR_PORT $PORT_TO_REPORT +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit 1.2.3-korg