aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2019-07-26vom: migration from scvpp to vomYohanPipereau1-41/+39
Change-Id: I79609f0bee9b8307da0d9bf704babe8ba06dba4d Signed-off-by: YohanPipereau <ypiperea@cisco.com> Co-authored-by: Pavel Kotucek <pavel.kotucek@pantheon.tech> Co-authored-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-06-19Fix "cmake not found" error in CentOS 7.5jackiechen19851-2/+2
In CentOS, the executive binary for cmake3 is "cmake3" rather that cmake in Ubuntu. Change-Id: Ib2ce2310e5a8e78ef8a5c53e8d88aca74faf1818 Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
2019-06-18Minor changes to Cmake/Make systemYohanPipereau1-1/+1
- Verbose mode to run scvpp unit test - Set scvpp unit test timeout to 60 seconds - Set cmake required version number to 3.0 - Set libscvpp pkgconfig file version to PROJECT_VERSION Variable used in CmakeListt Change-Id: I07c4ecb805a820c78007773f2f3ff68ee5be9cc3 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-06-17[gnmi] Remove gNMI from sweetcombYohanPipereau1-43/+4
Reasons for removing it: -This gNMI server has been upgraded to a more stable form. -It should live in a separate project because gNMI server is only dependant of sysrepo not of VPP or sweetcomb. -There were strange dependencies to this implementation like an XML parser library. -Capabilities RPC was answering wrong version number (1001 instead of 0.7.0) and encodings (ASCII vs JSON). -Error codes were not return to client in case of problem of configuration. Typically for element not found. -This server uses sysrepo C API though bindings for C++ can be obtained. -Documentation was missing. -Set RPC could not identify a key in a YANG list because a YANG library must be used for this not just a JSON parser. -It would be difficult to adapt this server to support more encodings than JSON. The new gNMI server offers an easier way to add encodings. -Log control level has been implemented in the new gNMI server. -Subscribe RPC has been added to the new server. Link to the new gNMI server: https://github.com/YohanPipereau/sysrepo_gnxi Change-Id: If57ab23c776430552d9d70fea6681db1b56af525 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-06-13[TEST] - Jenkins dependenceAndrej Kozemcak1-2/+7
- Update libssl for ubuntu 16.04 - Change ssh password for netopeer - Handle exception Change-Id: Ic13d96491a67496cba2b6ef698698b855ee67fd1 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-06-13[TEST] - install test dependenciesAndrej Kozemcak1-0/+39
Change-Id: Ic3a414573030d3b1fe8f34ff787428ed5449eeaf Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-06-03[TEST] - automatic test runAndrej Kozemcak1-1/+1
- skript find all test file - start test function from test file Change-Id: I3b37247c960afa6bf788cd14f1d8d240af3100c6 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-06-03[TEST] - Initialize to use of YDK in sweetcomb testAndrej Kozemcak1-1/+5
- remove netopeer client - use YDK - check result, assert when error Change-Id: Icb29dd5a35e8f7dbbeff2e44ec088b890f93b5ef Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-05-23Correct Makefile to let Jenkins report build errors correctlyYohanPipereau1-3/+9
Change-Id: I611cfd199415ca7776c94a154a102e4f6482db72 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-05-15Docker build improvementsPavel Kotucek1-2/+7
Additional small changes to create dev docker image. Possibility to specify vpp version (master/release) to be used. Change-Id: I2c3ea9df60a9b00fbd158f2d06192f23ecd3ee0b Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
2019-05-15Docker build improvementsPavel Kotucek1-3/+3
Added small changes to create dev docker image. Fixed checkstyle. Change-Id: I0ea1a0bad114578903073526fa12b84702072e3a Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
2019-04-26This patch fixes docker env and dependenciesYohanPipereau1-7/+14
-Modify Dockerfile to build our own image of sysrepo with netopeer2 -Add missing pkg-config dependency to compile netopeer2 from ubuntu -Fix typo in makefile for LIBSSH dependency -Install protobuf then grpc in install-dep-gnmi-extra in Makefile Change-Id: I5b8a64cc29cf67f7dd7ff439f80ea77844632435 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-04-25ACL yang modelsPavel Kotucek1-19/+24
Added ACL openconfig yang models. Change-Id: If8075def912bfa5f980101221d781b4857d4ca45 Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
2019-04-18Fix docker runtime and Makefilev19.08-rc0YohanPipereau1-20/+19
-Remove make test used in build-scvpp and add a test-scvpp instruction -Remove useless build scripts for docker build -Use sysrepo docker image to build sweetcomb docker image -Change makefile clean instruction to avoid errors -Do not put scripts in build-root directory but in sweetcomb root dir -Remove sysrepo compiled in Debug mode causing error looking for symbols Change-Id: Ie1d77f5224ad545da29c0f450403dbd47ca7c563 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-04-16Leave docker and docker_test optionsYohanPipereau1-0/+6
Change-Id: I34b4b53a1464826d0eda4e2ca09982afc69f093e Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-04-09Modify build systemYohanPipereau1-169/+141
-Clean Makefile -Fix errors in scvpp length copies -Add testing when building scvpp Change-Id: I5a331386a1812b147dfec26310dfbd3aed327dae Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-03-29Sweetcomb global cleanupYohanPipereau1-2/+25
-Merge IETF and Openconfig to use SCVPP 2 -Move L2 bridge from sc_vpp_interface to sc_vpp_v3po -Implement tav2 dump -Make openconfig-interfaces functions static -Try one more dispatch after failure in VAPI_CALL -Add error return code for scvpp -Remove unused length maccros -Return appropriate error code for interface dump when interface not found -Improve scvpp test suite -Change get_interface_id prototype -Use interface_dump_iface in openconfig_interface. -No more vapi types in openconfig_interfaces.c -Move openconfig_local_routing VAPI operations to sc_vpp_ip -Implement a multiple dump with a stack data structure -Comment out state_cb code from openconfig_local_routing to use new functions later. -Rename YANG model to their fully qualified name : <module>@<revision> -Remove headers almost empty and put registration declaration in sc_model.h -Shorten vapi context global variable name -Reorganize scvpp unit test suite -Add instructions to Makefile to install/uninstall YANG models in sysrepo. -Add this new instructions to README.md. -Reimplement interface_dump_all -Use a common message at INFO Log Level to know when sysrepo callbacks are triggered -Remove old structure to perform dump of all interfaces -Reimplement get_interface_name and add scvpp test for it -Clean sys_util -Use UNUSED maccro everywhere to have lighter prototypes -Have ietf-interfaces:interfaces-state work with new dump function -Add setup and teardown for NAT tests -Remove unused tapv2 dump -Remove useless sysrepo module callback -Remove xpath_find_first_key usage in openconfig-interfaces -Remove xpath_find_first_key in oc_local_routing and in the rest of sweetcomb -Reorganize scvpp include dir and fix scvpp_test new warnings -Fix scvpp tests for ip routes -Factorize scvpp nat and test return code of its function -Correct test_dump_if_all if there is an existing hardware interface -Implement a per-prefix dump in scvpp -free changes iterator in ietf-interfaces -Add new XPATH in oc local-routing -Introduce helper methods for sysrepo config callbacks -Factorize config callback -Refactor the openconfig-local-routing config callback -Use common foreach_change to iterate over changes in all models -Create a sample directory gathering example of configurations supposed to work with sweetcomb -Fix state callback of oc-local-routing -Add new sample for get operation on next-hop -foreach_elt maccro condition forgets to read one element Change-Id: I8e87fce577a00337977588f057a6e095a20f457c Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-03-07Init gNMI server.Andrej Kozemcak1-13/+74
Change-Id: Ie898b5385096e735bf947775e0278c3c8f4797a8 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-02-26In vpp master(now is 19.04) branch newest deb package, the name has changedJunfeng Wang1-1/+1
https://packagecloud.io/app/fdio/master/search?q=19.04-rc0~266-gd7e7c2b88~b2149&filter=debs&filter=debs&dist=ubuntu%2Fbionic Revert "Fix install-vpp instructions in Makefile for debian-based machines." This reverts commit 34adbaa08710678aea59127f28becf834e29a200. Change-Id: I74a8b48b98e6cd879c45d731fcd3f0af8bb03571 Signed-off-by: Junfeng Wang <drenfong.wang@intel.com>
2019-02-25Fix install-vpp instructions in Makefile for debian-based machines.YohanPipereau1-1/+1
Change-Id: I154f790cfe8ce179d9dee84a56436db79f12373e Signed-off-by: Yohan Pipereau <ypiperea@cisco.com>
2019-02-211: Create Test enviroment.Andrej Kozemcak1-0/+4
Change-Id: I79ea8d85312876af7fd389b4776f764c21345ff2 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-02-21Create docker enviroment.Andrej Kozemcak1-0/+4
Change-Id: I9ead8f2517f3f461bf3fe629804b8966783eecbd Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-02-20fix package run errordrenfong.wang1-1/+2
Change-Id: I5eb02817ad0b25649f89bfd2d8df022665baf064 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-14delete /build-root/downloads /build-root/build-package/_CPack_Packagesdrenfong.wang1-1/+1
Change-Id: I5c4247e8a4d4e13c40e3fdc78388e1c66317df7a Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-14fix rpm build and deb builddrenfong.wang1-2/+8
Change-Id: I6a48e0aaf6ab1fdccac30ccca7b8ac85513da2e9 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-12correct libvppinfra name in 19.04/ubuntudrenfong.wang1-1/+1
Change-Id: I23976a844a80198c566f047e9fa7ed615c6b75ed Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-12fix install-vpp on 19.04drenfong.wang1-3/+3
Change-Id: Ib9ec8f42d3feab34b1a5c20d124b937e69cd73b7 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-12fix vpp-plugin name in ubuntu(changed after 19.04-rc0~27)drenfong.wang1-2/+2
Change-Id: Ibe454a1a4578bb4bdee1e55949bd01ec5e752a98 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-12Merge "add build-package for sweetcomb"Hongjun Ni1-5/+10
2019-02-12remove vpp-api-java/python/luadrenfong.wang1-2/+2
Change-Id: I1525f6b34c2288ca2675ae793e6e77e7dd5dd588 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-12add build-package for sweetcombdrenfong.wang1-5/+10
Change-Id: I4e2bc4e667e32804c5fc18879e6520e463b86362 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-11modify yum's Parameterdrenfong.wang1-1/+1
Change-Id: Iebfd4180c18a23bfde97969f2cd455e080b7fc1e Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-11fix install-dep for centosdrenfong.wang1-2/+2
Change-Id: I2669337eb5c683f33e9690686554876b3c6d2ff8 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-11fix install-dep-extra's auto installation on centosdrenfong.wang1-12/+5
Change-Id: I9f1eb53263cd2160cc85cf36d2ee4f503dd68166 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-04correct vpp-devel name in rpm package and add some package depdrenfong.wang1-2/+2
Change-Id: Ibcbd5d4a420c162f67f91c0b227eaab6e4c572cc Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-03Merge "comfirm for the installation of libavl"Junfeng Wang1-1/+1
2019-02-03comfirm for the installation of libavldrenfong.wang1-1/+1
Change-Id: Ifdbe12495c8cf1c8346dae3c266d46f5191778c1 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-02-03Fix install-vpp issueHongjun Ni1-2/+2
Change-Id: I645b1194592a4f73f00d925df2db0b63e9f824fa Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 3a917187a40a57af6f504609221ea4e91168f6ce)
2019-01-23add indent installation for fixstyle and change libssh 0.7.5(cannot build in ↵v19.04-rc0drenfong.wang1-4/+5
ubuntu 18.04) to 0.7.7 Change-Id: I1fdce561ce0d2609f3f455c1e8762d547ce6f365 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-01-23libssh version too low in ubuntu 16, build from sourcedrenfong.wang1-2/+7
Change-Id: I52f3a12881d80014de0ecc4a026979874f7b9a0f Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2019-01-22Makefile, add clean commnadAndrej Kozemcak1-0/+10
Change-Id: I915dc489866c54cd37066727b83c4ecef87377b4 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-01-22add option to build dependence from source and install vppdrenfong.wang1-15/+91
Change-Id: I4caa8737c9d5dd13f6d6c5e01e646801e5dab8a1 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2018-12-29add help option for makefile and classfy yang modeldrenfong.wang1-1/+2
Change-Id: I176bdbdfed79a5fa6db840797866b2d8354778f9 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
2018-12-20Add the libcmocka-dev into the dependent package.Gao Feng1-1/+1
Change-Id: Id92462e26afec53f29d6398edcd5cc4c503c4f08 Signed-off-by: Gao Feng <davidfgao@tencent.com>
2018-12-19corrected Makefile (mkdir -p)Pavol Hanzel1-2/+2
Change-Id: If9e33a00bcb250d16b2a9b1e4361b9bde9168557 Signed-off-by: Pavol Hanzel <pavol.hanzel@pantheon.tech>
2018-11-28Rework vpp connection based on vapi libraryHongjun Ni1-0/+4
Change-Id: I3b41b4141fd7ef7577f4f2cc9193b9c623a9d6d7 Signed-off-by: Chuanguo Wang <wangchuanguo@huachentel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2018-11-20Initial code commit for Sweetcomb projectHongjun Ni1-0/+112
The initial code is contruted by Cisco and HuachenTel. It supports three key features: 1). Keeps compatible with IETF Yang Model and Honeycomb Yang Model. 2). Supports mulitiple clients to configure VPP simultaneously. 3). Automatically connect to VPP. Change-Id: I3dda4fddb14062e5f113d505c6a7ee64d60c44c0 Signed-off-by: Rastislav Szabo <raszabo@cisco.com> Signed-off-by: Chuanguo Wang <wangchuanguo@huachentel.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>