aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--cmake/Modules/Packager.cmake2
-rw-r--r--ctrl/facemgr/src/api.c182
-rw-r--r--ctrl/facemgr/src/facelet.c2
-rw-r--r--ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c4
-rw-r--r--ctrl/libhicnctrl/CMakeLists.txt2
-rw-r--r--ctrl/sysrepo-plugins/hicn-plugin/CMakeLists.txt5
-rw-r--r--extras/CMakeLists.txt4
-rw-r--r--extras/libyang/cmake/Modules/Packaging.cmake6
-rw-r--r--extras/sysrepo/cmake/Modules/Packaging.cmake4
-rw-r--r--hicn-plugin/src/faces/udp/face_udp.c12
-rw-r--r--scripts/build-extras.sh5
-rw-r--r--scripts/build-packages.sh8
-rw-r--r--utils/CMakeLists.txt1
14 files changed, 171 insertions, 68 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab764906f..0001a0a45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,10 +56,10 @@ list(APPEND dir_options
BUILD_LIBHICN
BUILD_HICNLIGHT
BUILD_HICNPLUGIN
+ BUILD_CTRL
BUILD_LIBTRANSPORT
BUILD_UTILS
BUILD_APPS
- BUILD_CTRL
BUILD_SYSREPOPLUGIN
BUILD_EXTRAS
)
diff --git a/cmake/Modules/Packager.cmake b/cmake/Modules/Packager.cmake
index fdda9a203..5e77d7de0 100644
--- a/cmake/Modules/Packager.cmake
+++ b/cmake/Modules/Packager.cmake
@@ -50,7 +50,7 @@ macro(extract_version)
)
if (NOT VER)
- set(VER "v1.0-0-gcafe")
+ set(VER "v1.2-0-gcafe")
endif()
message(STATUS "Git describe output: ${VER}")
diff --git a/ctrl/facemgr/src/api.c b/ctrl/facemgr/src/api.c
index ac436a433..4233c469b 100644
--- a/ctrl/facemgr/src/api.c
+++ b/ctrl/facemgr/src/api.c
@@ -97,6 +97,7 @@ extern interface_ops_t updown_ops;
#endif
extern interface_ops_t hicn_light_ops;
+int facemgr_on_event(facemgr_t * facemgr, facelet_t * facelet);
int
facemgr_overlay_snprintf(char * s, size_t size, const facemgr_overlay_t * overlay)
@@ -560,7 +561,8 @@ facelet_cache_lookup(const facelet_set_t * facelet_cache, facelet_t * facelet,
ERROR("[facelet_cache_lookup] Error during cache match");
return -1;
}
- *cached_facelets = malloc(n * sizeof(facelet_t*));
+ if (cached_facelets)
+ *cached_facelets = malloc(n * sizeof(facelet_t*));
int num_match = 0;
for (unsigned i = 0; i < n; i++) {
@@ -572,7 +574,9 @@ facelet_cache_lookup(const facelet_set_t * facelet_cache, facelet_t * facelet,
if (!facelet_match(facelet_array[i], facelet)) {
continue;
}
- (*cached_facelets)[num_match++] = facelet_array[i];
+ if (cached_facelets)
+ (*cached_facelets)[num_match] = facelet_array[i];
+ num_match++;
}
free(facelet_array);
return num_match;
@@ -618,6 +622,13 @@ facemgr_facelet_satisfy_rules(facemgr_t * facemgr, facelet_t * facelet)
}
#endif /* WITH_ANDROID_UTILITY */
+ /* Default ignore list */
+ if ((netdevice_type == NETDEVICE_TYPE_LOOPBACK) || (netdevice_type == NETDEVICE_TYPE_UNDEFINED)) {
+ DEBUG("Ignored interface '%s/%s'...", netdevice.name,
+ netdevice_type_str[netdevice_type]);
+ return -3;
+ }
+
/* Ignore */
bool ignore;
if (facemgr_cfg_get_ignore(facemgr->cfg, &netdevice, netdevice_type,
@@ -912,6 +923,7 @@ facemgr_complement_facelet(facemgr_t * facemgr, facelet_t * facelet)
{
int rc;
+ DEBUG("[facemgr_complement_facelet]");
if (!facelet_has_key(facelet))
return -2;
@@ -944,7 +956,7 @@ facemgr_complement_facelet(facemgr_t * facemgr, facelet_t * facelet)
return rc;
#endif /* __linux__ */
- DEBUG("Complement manual");
+ DEBUG("[facemgr_complement_facelet] Complement manual");
rc = facemgr_complement_facelet_manual(facemgr, facelet);
if (rc != -2)
@@ -1011,11 +1023,12 @@ facemgr_process_facelet(facemgr_t * facemgr, facelet_t * facelet)
switch(rc) {
case -3:
/* Does not satisfy rules */
+ DEBUG("[facemgr_process_facelet] Does not satisfy rules");
facelet_set_status(facelet, FACELET_STATUS_IGNORED);
return 0;
case -2:
- /* Not enough information: AU in fact */
+ DEBUG("[facemgr_process_facelet] Complementing facelet is required");
if (facemgr_complement_facelet(facemgr, facelet) < 0) {
ERROR("[facemgr_process_facelet] Error while attempting to complement face for fields required by face creation");
goto ERR;
@@ -1088,7 +1101,6 @@ facemgr_process_facelet(facemgr_t * facemgr, facelet_t * facelet)
goto ERR;
}
- /* Facelets created from static get deleted */
#if 0
if (facelet_get_id(facelet) > 0) {
if (facelet_set_remove(facemgr->facelet_cache, facelet, NULL) < 0) {
@@ -1102,12 +1114,15 @@ facemgr_process_facelet(facemgr_t * facemgr, facelet_t * facelet)
DEBUG("[facemgr_process_facelet] Cleaning cached data");
facelet_unset_local_addr(facelet);
facelet_unset_local_port(facelet);
- facelet_unset_remote_addr(facelet);
- facelet_unset_remote_port(facelet);
+ if (facelet_get_id(facelet) == 0) {
+ facelet_unset_remote_addr(facelet);
+ facelet_unset_remote_port(facelet);
+ facelet_clear_routes(facelet);
+ }
+
facelet_unset_admin_state(facelet);
facelet_unset_state(facelet);
facelet_unset_bj_done(facelet);
- facelet_clear_routes(facelet);
#ifdef WITH_ANDROID_UTILITY
facelet_unset_au_done(facelet);
#endif /* WITH_ANDROID_UTILITY */
@@ -1329,7 +1344,10 @@ facemgr_consider_static_facelet(facemgr_t * facemgr, facelet_t * facelet)
if (facelet_found)
return 0;
- facelet_set_id(static_facelet, ++facemgr->cur_static_id);
+ facemgr->cur_static_id++;
+
+ facelet_set_id(static_facelet, facemgr->cur_static_id);
+ facelet_set_id(facelet, facemgr->cur_static_id);
if (facelet_array_add(facemgr->static_facelets, static_facelet) < 0) {
ERROR("[facemgr_consider_static_facelet] Could not add facelet to static array");
@@ -1345,6 +1363,78 @@ facemgr_consider_static_facelet(facemgr_t * facemgr, facelet_t * facelet)
ERROR("[facemgr_consider_static_facelet] Error during facelet string output");
DEBUG("[facemgr_consider_static_facelet] Successfully added facelet to static array %s", facelet_s);
+#if 1
+ /* Force application of the static face on all existing interfaces */
+ facelet_t ** facelet_array;
+ int n = facelet_set_get_array(facemgr->facelet_cache, &facelet_array);
+ if (n >= 0) {
+ for (unsigned i = 0; i < n; i++) {
+ facelet_t * cached_facelet = facelet_array[i];
+
+ netdevice_type_t netdevice_type;
+ if (facelet_get_netdevice_type(facelet, &netdevice_type) < 0) {
+ ERROR("[facemgr_consider_static_facelet] Error retrieving netdevice type from cached facelet");
+ continue;
+ }
+ if ((netdevice_type == NETDEVICE_TYPE_LOOPBACK) || (netdevice_type == NETDEVICE_TYPE_UNDEFINED))
+ continue;
+
+ facelet_t * new_facelet = facelet_dup(cached_facelet);
+ facelet_unset_remote_addr(new_facelet);
+ facelet_unset_remote_port(new_facelet);
+ facelet_unset_admin_state(new_facelet);
+ facelet_unset_state(new_facelet);
+ facelet_unset_bj_done(new_facelet);
+ facelet_clear_routes(new_facelet);
+#ifdef WITH_ANDROID_UTILITY
+ facelet_unset_au_done(new_facelet);
+#endif /* WITH_ANDROID_UTILITY */
+
+ /* We try to apply static_facelet over facelet */
+ if (!facelet_match(new_facelet, static_facelet)) {
+ facelet_free(new_facelet);
+ continue;
+ }
+
+ if (facelet_merge(new_facelet, static_facelet) < 0) {
+ ERROR("[facemgr_consider_static_facelet] Error merging facelets");
+ facelet_free(new_facelet);
+ continue;
+ }
+
+ /*
+ * We need to set the id before checking for existence as tuple used
+ * is (id, netdevice, family)
+ */
+ facelet_set_id(new_facelet, facemgr->cur_static_id);
+
+ facelet_found = NULL;
+ if (facelet_set_get(facemgr->facelet_cache, new_facelet, &facelet_found) < 0) {
+ ERROR("[facemgr_consider_static_facelet] Error checking whether new static facelet already exists or not");
+ continue;
+ }
+
+
+ /* Skip addition if facelet exists */
+ if (facelet_found) {
+ facelet_free(new_facelet);
+ continue;
+ }
+
+ facelet_set_attr_clean(new_facelet);
+ facelet_set_status(facelet, FACELET_STATUS_UNDEFINED);
+
+ if (facemgr_on_event(facemgr, new_facelet) < 0) {
+ ERROR("[facemgr_process_facelet_create_no_family] Error creating static facelet for existing face");
+ continue;
+ }
+
+ INFO("Successfully created static facelet for existing face");
+ }
+ free(facelet_array);
+ }
+#endif
+
return 1;
}
@@ -1368,8 +1458,19 @@ facemgr_process_facelet_get(facemgr_t * facemgr, facelet_t * facelet)
return -1;
if (!IS_VALID_NETDEVICE(netdevice))
return -2;
+
facelet_set_status(facelet, FACELET_STATUS_CLEAN);
+ /* Skip if face exists */
+ int n = facelet_cache_lookup(facemgr->facelet_cache, facelet, NULL);
+ if (n < 0) {
+ ERROR("[facemgr_process_facelet_get] Error during cache lookup");
+ return -1;
+ }
+ assert (n <= 1);
+ if (n > 0)
+ return 0;
+
/* Process untagged faces */
netdevice_type_t netdevice_type;
if (facelet_get_netdevice_type(facelet, &netdevice_type) < 0) {
@@ -1405,36 +1506,31 @@ facemgr_process_facelet_get(facemgr_t * facemgr, facelet_t * facelet)
return -2;
}
}
- }
- int n = facemgr_consider_static_facelet(facemgr, facelet);
- if (n < 0) {
- ERROR("[facemgr_process_facelet_get] Could not add facelet to static array");
- return -1;
- }
- if (n == 1) {
- /*
- * As a static facelet, it receives a new id not to be confused in the
- * cache with default facelets
- */
- facelet_set_id(facelet, ++facemgr->cur_static_id);
+ if ((netdevice_type == NETDEVICE_TYPE_UNDEFINED) || (netdevice_type == NETDEVICE_TYPE_LOOPBACK))
+ return 0;
+
+ if (facemgr_process_facelet(facemgr, facelet) < 0) {
+ ERROR("[facemgr_process_facelet_get] Error processing facelet");
+ return -1;
+ }
}
- char facelet_s[MAXSZ_FACELET];
- facelet_snprintf(facelet_s, MAXSZ_FACELET, facelet);
+ if ((netdevice_type == NETDEVICE_TYPE_UNDEFINED) || (netdevice_type == NETDEVICE_TYPE_LOOPBACK))
+ return 0;
+
if (facelet_set_add(facemgr->facelet_cache, facelet) < 0) {
ERROR("[facemgr_process_facelet_get] Error adding received facelet to cache");
return -1;
}
- /* Proceed to the update is the facelet status is not clean */
- if (facelet_get_status(facelet) != FACELET_STATUS_CLEAN) {
- if (facemgr_process_facelet(facemgr, facelet) < 0) {
- ERROR("[facemgr_process_facelet_get] Error processing facelet");
- return -1;
- }
+ n = facemgr_consider_static_facelet(facemgr, facelet);
+ if (n < 0) {
+ ERROR("[facemgr_process_facelet_get] Could not add facelet to static array");
+ return -1;
}
+
return 0;
}
@@ -1516,12 +1612,14 @@ facemgr_process_facelet_delete(facemgr_t * facemgr, facelet_t * facelet)
DEBUG("[facemgr_process_facelet] Cleaning cached data");
facelet_unset_local_addr(facelet);
facelet_unset_local_port(facelet);
- facelet_unset_remote_addr(facelet);
- facelet_unset_remote_port(facelet);
+ if (facelet_get_id(facelet) == 0) {
+ facelet_unset_remote_addr(facelet);
+ facelet_unset_remote_port(facelet);
+ facelet_clear_routes(facelet);
+ }
facelet_unset_admin_state(facelet);
facelet_unset_state(facelet);
facelet_unset_bj_done(facelet);
- facelet_clear_routes(facelet);
#ifdef WITH_ANDROID_UTILITY
facelet_unset_au_done(facelet);
#endif /* WITH_ANDROID_UTILITY */
@@ -1555,8 +1653,6 @@ facemgr_process_facelet_delete(facemgr_t * facemgr, facelet_t * facelet)
return 0;
}
-int facemgr_on_event(facemgr_t * facemgr, facelet_t * facelet);
-
int
facemgr_process_facelet_create_no_family(facemgr_t * facemgr, facelet_t * facelet)
{
@@ -1624,7 +1720,6 @@ facemgr_process_facelet_create_no_family(facemgr_t * facemgr, facelet_t * facele
continue;
}
facelet_set_id(facelet_new, facelet_get_id(static_facelet));
- /* The id must be different than 0 */
facelet_set_attr_clean(facelet_new);
facelet_set_status(facelet, FACELET_STATUS_UNDEFINED);
@@ -1668,6 +1763,17 @@ facemgr_on_event(facemgr_t * facemgr, facelet_t * facelet_in)
facelet_set_netdevice_type(facelet_in, facemgr_get_netdevice_type(facemgr, netdevice.name));
}
+#if 0
+ netdevice_type_t netdevice_type;
+ if (facelet_get_netdevice_type(facelet_in, &netdevice_type) < 0) {
+ return 0;
+ }
+
+ if ((netdevice_type == NETDEVICE_TYPE_UNDEFINED) ||
+ (netdevice_type == NETDEVICE_TYPE_LOOPBACK))
+ return 0;
+#endif
+
char facelet_s[MAXSZ_FACELET];
facelet_snprintf(facelet_s, MAXSZ_FACELET, facelet_in);
@@ -1864,12 +1970,6 @@ facemgr_on_event(facemgr_t * facemgr, facelet_t * facelet_in)
ERROR("[facemgr_on_event] Error processing facelet DELETE event");
continue;
}
- /*
- if (facelet_set_remove(facemgr->facelet_cache, facelet, NULL) < 0) {
- ERROR("[facemgr_process_facelet] Could not remove down facelet from cache");
- goto ERR;
- }
- */
continue;
case FACELET_EVENT_UNDEFINED:
diff --git a/ctrl/facemgr/src/facelet.c b/ctrl/facemgr/src/facelet.c
index ac84f5f70..d33455b4d 100644
--- a/ctrl/facemgr/src/facelet.c
+++ b/ctrl/facemgr/src/facelet.c
@@ -198,6 +198,8 @@ facelet_validate_face(const facelet_t * facelet)
if (!facelet_has_remote_addr(facelet))
return false;
case FACE_TYPE_LAYER_3:
+ if (!facelet_has_local_port(facelet))
+ return false;
if (!facelet_has_local_addr(facelet))
return false;
if (!facelet_has_netdevice(facelet))
diff --git a/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c b/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c
index b4e1f0695..508c0713b 100644
--- a/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c
+++ b/ctrl/facemgr/src/interfaces/hicn_light/hicn_light.c
@@ -109,6 +109,10 @@ int hl_process_state(interface_t * interface)
case HL_STATE_ROUTES_SENT:
case HL_STATE_FACES_SENT:
INFO("[hl_process_state] Out of sync... resetting state");
+ if (data->polled_routes) {
+ hc_data_free(data->polled_routes);
+ data->polled_routes = NULL;
+ }
data->state = HL_STATE_IDLE;
break;
diff --git a/ctrl/libhicnctrl/CMakeLists.txt b/ctrl/libhicnctrl/CMakeLists.txt
index d0a4bbef3..ff586ff22 100644
--- a/ctrl/libhicnctrl/CMakeLists.txt
+++ b/ctrl/libhicnctrl/CMakeLists.txt
@@ -37,7 +37,7 @@ set(CMAKE_MACOSX_RPATH ON)
set(LIBHICNCTRL hicnctrl)
if (BUILD_HICNPLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
- set(LIBHICNCTRL ${LIBHICNCTRL}-memif PARENT_SCOPE)
+ set(LIBHICNCTRL ${LIBHICNCTRL}-memif)
set(LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs")
list(APPEND HICN_LIBRARIES ${HICNPLUGIN_LIBRARIES})
endif()
diff --git a/ctrl/sysrepo-plugins/hicn-plugin/CMakeLists.txt b/ctrl/sysrepo-plugins/hicn-plugin/CMakeLists.txt
index 34dbdb817..d5b15f21a 100644
--- a/ctrl/sysrepo-plugins/hicn-plugin/CMakeLists.txt
+++ b/ctrl/sysrepo-plugins/hicn-plugin/CMakeLists.txt
@@ -30,7 +30,8 @@ set(SOURCE_FILES
list(APPEND SYSREPO_PLUGIN_INCLUDE_DIRS
${VPP_INCLUDE_DIRS}
- ${HICNPLUGIN_INCLUDE_DIRS})
+ ${HICNPLUGIN_INCLUDE_DIRS}
+)
list(APPEND LIBRARIES
${SYSREPO_LIBRARIES}
@@ -41,7 +42,7 @@ build_library(sysrepohicn
SOURCES ${SOURCE_FILES}
LINK_LIBRARIES ${LIBRARIES}
DEPENDS ${DEPENDENCIES}
- COMPONENT hicn_sysrepo_plugin
+ COMPONENT hicn-sysrepo-plugin
INCLUDE_DIRS ${SYSREPO_PLUGIN_INCLUDE_DIRS}
INSTALL_FULL_PATH_DIR ${SRPD_PLUGINS_PATH}
DEFINITIONS ${COMPILER_DEFINITIONS}
diff --git a/extras/CMakeLists.txt b/extras/CMakeLists.txt
index 71a598326..6629f3809 100644
--- a/extras/CMakeLists.txt
+++ b/extras/CMakeLists.txt
@@ -21,8 +21,8 @@ list(APPEND CMAKE_MODULE_PATH
set (DESTDIR ${CMAKE_BINARY_DIR}/extras-root)
-add_subdirectory(router-plugin)
-add_subdirectory(libmemif)
+# add_subdirectory(router-plugin)
+# add_subdirectory(libmemif)
add_subdirectory(libyang)
add_subdirectory(sysrepo)
diff --git a/extras/libyang/cmake/Modules/Packaging.cmake b/extras/libyang/cmake/Modules/Packaging.cmake
index 80dcecb76..853b18e58 100644
--- a/extras/libyang/cmake/Modules/Packaging.cmake
+++ b/extras/libyang/cmake/Modules/Packaging.cmake
@@ -23,11 +23,11 @@ set(libyang_DESCRIPTION
)
set(libyang_DEB_DEPENDENCIES
- "libpcre3 (>= 2:8.39-9)"
+ "libpcre3 (>= 2:8.38-3.1)"
CACHE STRING "Dependencies for deb/rpm package."
)
set(libyang_RPM_DEPENDENCIES
- "libpcre3 (>= >= 2:8.39-9)"
+ "pcre >= 8.32-17"
CACHE STRING "Dependencies for deb/rpm package."
-)
+) \ No newline at end of file
diff --git a/extras/sysrepo/cmake/Modules/Packaging.cmake b/extras/sysrepo/cmake/Modules/Packaging.cmake
index db407616a..2433539c7 100644
--- a/extras/sysrepo/cmake/Modules/Packaging.cmake
+++ b/extras/sysrepo/cmake/Modules/Packaging.cmake
@@ -23,12 +23,12 @@ set(sysrepo_DESCRIPTION
)
set(sysrepo_DEB_DEPENDENCIES
- "libpcre3 (>= 2:8.39-9), libev4 (>= 1:4.22-1), libprotobuf-c1 (>= 1.2.1-2), libyang (>= 0.16-r2-1), libavl1 (>=0.3.5-4)"
+ "libyang (>= 1.0)"
CACHE STRING "Dependencies for deb/rpm package."
)
set(sysrepo_RPM_DEPENDENCIES
- "libpcre3 (>= 2:8.39-9), libev4 (>= 1:4.22-1), libprotobuf-c1 (>= 1.2.1-2), libyang (>= 0.16-r2-1), libavl1 (>=0.3.5-4)"
+ "libyang >= 1.0"
CACHE STRING "Dependencies for deb/rpm package."
)
diff --git a/hicn-plugin/src/faces/udp/face_udp.c b/hicn-plugin/src/faces/udp/face_udp.c
index 6a8e5c9e0..54d773358 100644
--- a/hicn-plugin/src/faces/udp/face_udp.c
+++ b/hicn-plugin/src/faces/udp/face_udp.c
@@ -159,10 +159,8 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
hicn_face_udp4_get (&local_addr->ip4, &remote_addr->ip4, local_port,
remote_port);
- if (face != NULL)
- return HICN_ERROR_FACE_ALREADY_CREATED;
-
- pool_get (hicn_dpoi_face_pool, face);
+ if (face == NULL)
+ pool_get (hicn_dpoi_face_pool, face);
hicn_face_udp_t *udp_face = (hicn_face_udp_t *) face->data;
@@ -225,10 +223,8 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
hicn_face_udp6_get (&local_addr->ip6, &remote_addr->ip6, local_port,
remote_port);
- if (face != NULL)
- return HICN_ERROR_FACE_ALREADY_CREATED;
-
- pool_get (hicn_dpoi_face_pool, face);
+ if (face == NULL)
+ pool_get (hicn_dpoi_face_pool, face);
hicn_face_udp_t *udp_face = (hicn_face_udp_t *) face->data;
diff --git a/scripts/build-extras.sh b/scripts/build-extras.sh
index 9b768d55b..cbf2113ba 100644
--- a/scripts/build-extras.sh
+++ b/scripts/build-extras.sh
@@ -113,8 +113,6 @@ setup() {
echo ${DEPS_CENTOS} | xargs sudo yum install -y --nogpgcheck
sudo yum install devtoolset-7 pcre-devel
- c++ --version
-
CXX_COMPILER="/opt/rh/devtoolset-7/root/usr/bin/c++"
CC_COMPILER="/opt/rh/devtoolset-7/root/usr/bin/cc"
@@ -123,9 +121,6 @@ setup() {
export CC=${CC_COMPILER} CXX=${CXX_COMPILER}
fi
-
- # do nothing but check compiler version
- c++ --version
}
# Parameters:
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh
index 2205d6277..293b3df21 100644
--- a/scripts/build-packages.sh
+++ b/scripts/build-packages.sh
@@ -40,6 +40,8 @@ DEPS_UBUNTU="libparc-dev \
libvppinfra=${VPP_VERSION_DEB} \
libvppinfra-dev=${VPP_VERSION_DEB} \
vpp-plugin-core=${VPP_VERSION_DEB} \
+ libyang \
+ sysrepo \
python3-ply"
DEPS_CMAKE_UBUNTU="curl"
@@ -54,6 +56,8 @@ DEPS_CENTOS="vpp-devel-${VPP_VERSION_RPM} \
asio-devel \
libconfig-devel \
centos-release-scl \
+ libyang \
+ sysrepo \
devtoolset-7"
DEPS_CENTOS_NOVERSION="vpp-devel \
@@ -174,12 +178,14 @@ build_package() {
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_APPS=ON ${SCRIPT_PATH}/..
make -j8 package
- rm -rf libtransport ctrl/libctrl
+ rm -rf libtransport ctrl/libhicnctrl
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_HICNPLUGIN=ON \
-DBUILD_LIBTRANSPORT=ON \
-DBUILD_APPS=ON \
+ -DBUILD_HICNLIGHT=OFF \
+ -DBUILD_SYSREPOPLUGIN=ON \
${SCRIPT_PATH}/..
make -j8 package
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 3216582c2..d4458dc55 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -46,7 +46,6 @@ else()
endif()
set(SUFFIX "")
-message("~~~~~~~~~~~~~~~~~~~~~~> ${LIBTRANSPORT_LIBRARIES}")
if (${LIBTRANSPORT_LIBRARIES} MATCHES ".*-memif.*")
set(SUFFIX "-memif")
set(LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs")