2 # Copyright 2016 RIFT.IO Inc
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Author(s): Anil Gunturu
17 # Creation Date: 03/26/2014
20 cmake_minimum_required(VERSION 2.8)
23 ${CMAKE_CURRENT_SOURCE_DIR}/generate_packages.sh.in
24 ${CMAKE_CURRENT_BINARY_DIR}/generate_packages.sh
29 ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd.tar.gz
30 ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd.tar.gz
31 ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd.tar.gz
32 ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd_aws.tar.gz
33 ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd_aws.tar.gz
34 ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd_aws.tar.gz
35 ${CMAKE_CURRENT_BINARY_DIR}/ping_pong_nsd_with_epa.tar.gz
36 ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd_with_epa.tar.gz
37 ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd_with_epa.tar.gz)
40 OUTPUT ${PACKAGE_OUTPUT}
41 COMMAND ${CMAKE_CURRENT_BINARY_DIR}/generate_packages.sh
42 DEPENDS mano_yang rwcloud_yang ${CMAKE_CURRENT_SOURCE_DIR}/ping_pong_nsd.py
45 add_custom_target(ping_pong_pkg_gen ALL
46 DEPENDS mano_yang rwcloud_yang ${PACKAGE_OUTPUT}
50 FILES ${PACKAGE_OUTPUT}
52 usr/rift/mano/examples/ping_pong_ns
53 COMPONENT ${PKG_LONG_NAME}
58 ${CMAKE_CURRENT_BINARY_DIR}/ping_vnfd_with_image.tar.gz
59 ${CMAKE_CURRENT_BINARY_DIR}/pong_vnfd_with_image.tar.gz
61 usr/rift/mano/examples/ping_pong_ns
62 COMPONENT ${PKG_LONG_NAME}
66 rift_python_install_tree(
67 COMPONENT ${PKG_LONG_NAME}
69 rift/mano/examples/ping_pong_nsd.py
70 rift/mano/examples/start_traffic.py
75 rift/mano/examples/ping_config.py
78 COMPONENT ${PKG_LONG_NAME}