Skip to content

Commit

Permalink
Merge pull request FRRouting#7963 from volta-networks/feat_pceplib_in…
Browse files Browse the repository at this point in the history
…to_frr_github

pceplib: Integrate pcelib into frr
  • Loading branch information
donaldsharp authored Mar 16, 2021
2 parents 30643d6 + 7497147 commit 3406c16
Show file tree
Hide file tree
Showing 127 changed files with 27,102 additions and 211 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/libtool
/libtool.orig
/changelog-auto
/test-driver

/Makefile
/Makefile.in
Expand Down
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ include bfdd/subdir.am
include yang/subdir.am
include yang/libyang_plugins/subdir.am
include vrrpd/subdir.am
include pceplib/subdir.am
include pceplib/test/subdir.am
include pathd/subdir.am

include vtysh/subdir.am
Expand Down
22 changes: 10 additions & 12 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1723,12 +1723,10 @@ fi

AS_IF([test "$enable_pathd" != "no"], [
AC_DEFINE([HAVE_PATHD], [1], [pathd])
])

AS_IF([test "$enable_pcep" != "no"], [
AC_DEFINE([HAVE_PATHD_PCEP], [1], [pathd-pcep])
])


if test "$ac_cv_lib_json_c_json_object_get" = "no" -a "$BFDD" = "bfdd"; then
AC_MSG_ERROR(["you must use json-c library to use bfdd"])
fi
Expand Down Expand Up @@ -2550,15 +2548,14 @@ AM_CONDITIONAL([HAVE_PROTOBUF], [test "$enable_protobuf" = "yes"])
AM_CONDITIONAL([HAVE_PROTOBUF3], [$PROTO3])

dnl PCEP plugin
AM_CONDITIONAL([HAVE_PATHD_PCEP], [test "$enable_pcep" = "yes"])
AS_IF([test "$enable_pcep" = "yes"], [
AC_CHECK_LIB([pcep_pcc], [initialize_pcc], [
PATHD_PCEP_LIBS="-lpcep_pcc"
],[
AC_MSG_ERROR([PCEP library libpcep_pcc not found])
])
AC_SUBST([PATHD_PCEP_LIBS])
])
AS_IF([test "$enable_pathd" != "no"], [
AC_SUBST([PATHD_PCEP_LIBS], ["pceplib/libpcep_pcc.la"])
AC_SUBST([PATHD_PCEP_INCL], ["-I./pceplib "])
])
AC_CHECK_LIB([cunit], [CU_initialize_registry], [pcep_cunit=yes],[pcep_cunit=no])
AM_CONDITIONAL([PATHD_PCEP_TEST], [test "x${pcep_cunit}" = xyes])
AC_CHECK_PROG(VALGRIND_CHECK, valgrind, yes)
AM_CONDITIONAL([HAVE_VALGRIND_PCEP], [test "$VALGRIND_CHECK" = "yes"])

dnl daemons
AM_CONDITIONAL([VTYSH], [test "$VTYSH" = "vtysh"])
Expand All @@ -2583,6 +2580,7 @@ AM_CONDITIONAL([STATICD], [test "$enable_staticd" != "no"])
AM_CONDITIONAL([FABRICD], [test "$enable_fabricd" != "no"])
AM_CONDITIONAL([VRRPD], [test "$enable_vrrpd" != "no"])
AM_CONDITIONAL([PATHD], [test "$enable_pathd" != "no"])
AM_CONDITIONAL([PATHD_PCEP], [test "$enable_pathd" != "no"])

AC_CONFIG_FILES([Makefile],[
test "$enable_dev_build" = "yes" && makefile_devbuild="--dev-build"
Expand Down
1 change: 1 addition & 0 deletions debian/frr.install
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ usr/lib/*/frr/modules/dplane_fpm_nl.so
usr/lib/*/frr/modules/zebra_cumulus_mlag.so
usr/lib/*/frr/modules/zebra_fpm.so
usr/lib/*/frr/modules/zebra_irdp.so
usr/lib/*/frr/modules/pathd_pcep.so
usr/lib/frr/*.sh
usr/lib/frr/*d
usr/lib/frr/watchfrr
Expand Down
Binary file added doc/developer/images/PCEPlib_design.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/developer/images/PCEPlib_internal_deps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/developer/images/PCEPlib_socket_comm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/developer/images/PCEPlib_threading_model.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/developer/images/PCEPlib_timers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/developer/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ FRRouting Developer's Guide
zebra
vtysh
path
pceplib
link-state
Loading

0 comments on commit 3406c16

Please sign in to comment.