summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-06-17Skip CRC field for typesHEADmasterMichal Cmarada1-6/+7
VPP doesn't include crc field in types anymore, therefore we need to skip check if it exists. Change-Id: I1c6c7b72f22524387c15728b795d342011770c60 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-06-06Fix Centos l3xc plugin false buildMichal Cmarada1-0/+1
Change-Id: I1112b3bb75427d69b839bcf9d67bd3c7d31771d8 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-29fix union and object type collisionMichal Cmarada1-10/+32
if Union is enclosed in an object with the same name two variables with same name are generated in translate function. This fixes this issue by adding "Union" suffix to union class variable Change-Id: I4158083c5f0efc409a9d4bedeca2ebedb517692e Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-24fix length for string processingMichal Cmarada1-0/+1
In case string is null jstr_length crashes, this fixes the issue and returns 0 because null strings are replaced by empty strings later in process. Change-Id: Ib6b7a3985ae379207c4a06eb38df78dfdfbaffda Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-16fix signature bug for enumsetsMichal Cmarada1-4/+19
Change-Id: If28bb60eb58e1649c5bee0d707b95d5879e677b2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-15Add dump for interface names from stats apiMichal Cmarada16-3/+556
Change-Id: I051ce7500bbbef1088bbdd6f1cc68eb605f3ec61 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-15remove VNET_API_ERROR_IN_PROGRESS error handlingMichal Cmarada1-4/+1
VNET_API_ERROR_IN_PROGRESS error was removed from VPP. Removing handling for non-existing error code Change-Id: Id4ece31643dbf7997c3a768cb3e2a6c7b035f0de Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Fix SwInterfaceDump requestMichal Cmarada2-0/+6
After Api change in VPP swIfIndex was added for SwInterfaceDump request. It has to be set to ~0 to dump all interfaces or single index for single interface dump. Change-Id: I1d6236f4ec328659e25c63b355dab8d012782fd5 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Implement callbacks and registry for statsMichal Cmarada28-311/+1807
Change-Id: I9e562482195fcd5f54634cfff29df4358b78ed28 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Refactoring of DUMP functionTibor Král3-23/+73
Change-Id: Ia131939a448e28360e8ba9970e8be8003b55f851 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Revert "Revert "Implementation of jvpp-stats plugin""Michal Cmarada7-0/+417
This reverts commit f0ce8769561e1b487ab7b909b23510604bebbdc9. Change-Id: I7bd7ac19b58a1b78e6e449c250861ee9db63e72a Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Update java gitignore fileMichal Cmarada1-1/+17
- ignore generated jvpp files - ignore compiled java files - ignore logs Change-Id: I1164a16bc3bda9b777ffa01555e0c56e61a067d2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03fix contextId variable in debug logMichal Cmarada1-1/+1
Change-Id: I966a55e69b68ad503a4b5b4ea4fb3240c4ec0b89 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Fix Nat API implementationMichal Cmarada2-4/+9
- new types introduced to Nat API: bool, string - fixed imports for introduced types - fixed java callback example Change-Id: I216a77f15bfcc70f70cbf13c63737082d377e8c3 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03Fix enumset values for types other than u8(byte)Michal Cmarada2-7/+8
Usually enumsets use integer as its base type, however to reduce memory usage in VPP less memory consuming types can be used. This fixes enumset generator so other types can be used (byte, short...) Change-Id: I6c02153eecb879038f833491b0d7a4324d6ac102 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-03fix vpp string type api implementationMichal Cmarada4-57/+71
- separate static string functions to string_t.h library - ignore string limit value for now. We would need to create wrapper class for string to support max length in java. API example: [ "string", "version", { "limit": 32 } ] Change-Id: I60a8a2c56397d54d49544551dc91733e12a0a0ea Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-17Remove http_static plugin from core VPP packageMichal Cmarada1-0/+1
Change-Id: I33961af968d1840f41996c57397bf2eedac9fc37 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-171908 release notes bump19.08-rc0Michal Cmarada1-0/+10
Change-Id: I74909c89b00f341d68198650b10e9bd092d0efdf Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-16Revert "Implementation of jvpp-stats plugin"Tibor Král7-417/+0
This reverts commit 34f365fdc926ca9abda25db43a7a45c68e9aeb67. Change-Id: Ia2cf9715379e2dc35ce1660dac2471871fd39e71 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-04-15update cleanup scriptMichal Cmarada1-0/+1
Change-Id: I4022975c754ab43675cfc378e1c74b687d02450a Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-15initial release notes documentationMichal Cmarada2-0/+12
Change-Id: I079f49980de3660f3ac656b58a7fa30f50ff8b33 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-12Implementation of jvpp-stats pluginTibor Král7-0/+417
Change-Id: Ief8bc9f6b8059bbe9d418b46e09229f3a5b5df36 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-05Update cmake buildMichal Cmarada9-87/+280
- cleanups and updates - updates docs for centos build using devtoolset7 compiler Change-Id: I4c5635b1512dcd08e98291bde1f14c51f9067b63 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-20Fixes EnumSet translationTibor Král2-8/+34
Change-Id: Ic78a2523b766456e888c3468452a4685b8798dbe Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-03-20Revert "fixes after Interfaces API udate"Michal Cmarada4-29/+28
This reverts commit 596802d25220182f76b696b85c9fb4147baa425f. It is a temporary solution until CSIT adapts to these changes. Once done VPP will reintroduce these API changes and original patch can be applied again. Change-Id: Iccdcb3108a7dfa48bf36e485e8d60664c518949e Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15fixes after Interfaces API udateMichal Cmarada4-28/+29
Change-Id: I89ebdc382b685ffeb6997604e1e1200bf1580719 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15fix string variable nameMichal Cmarada1-2/+2
In case of strings if the field name contains name with underscore it wasn't converted to camelCase style. It was working for simple cases such as "cmd" but for more complex field names like "name_filter" the variable wasn't translated to "nameFiler" but remained unchanged. Change-Id: Ia53fdafd1cb53bcaba72e4d0433d71980d498e4c Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15introduce boolean typeMichal Cmarada1-0/+1
Change-Id: Id8bd2473a6e16f6e8f8f85c495ce1ad2dad286c2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15update callback timeouts to speed up unit testsMichal Cmarada2-6/+1
Change-Id: I16383b4e987be0c981e5c13a0aeefe34ff4b70f4 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15add documentation generatorMichal Cmarada10-5/+307
Enables generating of HTML documentation. It depends on sphinx generator. During configuration if sphinx is detected it will generate "docs" target for make. To build the documentation use "make docs", which will build the HTML documentation in build-root/html. Change-Id: Ia627f7d26c954a2341e13a54006955d21d162802 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-15fix ct6 is no longer part of coreMichal Cmarada1-0/+1
Ct6 was moved to plugins, this fixes the build failures for core plugins. Change-Id: If25623f4ea3f8aa917f23f955c81cb04deea714f Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-11add test and checkstyle supportMichal Cmarada9-1352/+451
All tests are in "tests" directory. To run tests use: make test For verbose output use: export V=2;make test ARGS="-V" Test log file is generated in: Testing/Temporary/LastTest.log To run checkstyle for the current commit use: ./scripts/checkstyle.sh To run full check on all files use: ./scripts/checkstyle.sh --full Change-Id: Ic83b3dbd44d2a264d27935f4e65cf9e737cfc0a0 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-04Update package namesMichal Cmarada100-596/+596
updating package names from io.fd.vpp.jvpp* to io.fd.jvpp* Change-Id: Ia1634db8f0875ff6ecfeddc281041cd49c4aacc2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-01introduce EnumSets for Flag typesMichal Cmarada5-4/+260
- this enables to set multiple enum options for flag types in VPP Change-Id: If7a59f8c3a47f712f6f591e1ce2547b15e0b2afb Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-01automate Jars installation scriptMichal Cmarada1-10/+7
Enables to install all plugins no matter what will be added in future. When the plugin preserves the naming schema (jvpp-[name]-[version].jar) it will be automatically detected by the script and Jars will be installed in local maven repository Change-Id: I07e7585d182653de53c716e36b8bcf5e475cdcd4 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-27add ikev2 pluginMichal Cmarada4-0/+158
- this enables to build ikev2 plugin Change-Id: Ifffea577b29db053ac8ecef2359ecc62d85611b2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-27Jvpp requirements cleanupMichal Cmarada4-18/+11
- minor bugfixes - cleanup Change-Id: I8aeb2688415ee223ec9faeec6509d2c6999cc947 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-26Remove ikev2.api from core packageMichal Cmarada1-0/+1
Ikev2 was moved to plugins in vpp. Since RPM packaging is broken in vpp both vpp and vpp-plugins contain the same api files. This fix removes ikev2 plugin api file from core vpp package when building jvpp. Change-Id: I8a3217818882b39bc0c5e1b61d30f70224aa23fe Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-19update install_jvpp local scriptMichal Cmarada2-9/+23
Change-Id: I1873e36579dcfc6c03cda8226c83c50245f09423 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-19JVPP-22: Update packagingMichal Cmarada6-23/+126
- rpm package name update according to naming conventions - vpp instalation verification - update versioning script Change-Id: I962895ce636aec949930ea452d1e924024c4b780 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-13fix RPM packagingMichal Cmarada1-1/+1
Change-Id: Ib9f09a4d1b7e73cf5d9f917fbce5c99324badecf Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-12fix set jni path automatically for JAVAMichal Cmarada1-8/+8
Change-Id: I525e7004eecfd21d597f0bf6fbc968f4c1a6faa8 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-12enable setting of JAVA_HOME for cmakeMichal Cmarada1-4/+4
Change-Id: I4ce9e8527f33d4dc5e63496ac72acc7b69c4f4bc Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-12update requirementsMichal Cmarada1-76/+4
- fix typo - cleanup Change-Id: Icb2403bf0a2542d31584cc2c7ffe8b725454de08 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-12fix processing of enum value in jniMichal Cmarada2-1/+5
Change-Id: Ia18a9526190ede32b4de0eb486ee8e42e01fa644 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-28unify formating for CMakeListsMichal Cmarada2-207/+207
Change-Id: If696faab8afcf685b36d7a9b45028758ffd43f07 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-28update packagingMichal Cmarada3-46/+81
- fix minor issues - add optional parameters to build ZIP and TGZ packages - updated list of supported OS - updated documentation Change-Id: Ie4ee73fc77232c6bd35644cdd8bb67bb4df42d93 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-25Adapt to new VPP Debian packagingMichal Cmarada1-6/+3
- vpp-plugins was renamed to vpp-plugin-core Change-Id: I7fc5faadb455b801e40508c93fd5e8f54536b1fc Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-24Add INFO.yaml fileVanessa Rene Valderrama1-0/+66
Add INFO.yaml to list: - Project description - Properties - Issue Tracking - Contacts - PTL information - Meeting information - Committer information Change-Id: I0555f08fb334671e6411765d8040ec0af65ce8d3 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2019-01-23initial commit19.04-rc0Michal Cmarada125-0/+12703
- migrates source code from VPP code base - modifies cmake configuration - adds cpack configuration for deb and rpm packaging - adds documentation Change-Id: Ib6a39030f6c47c8ae654fcb886c618e159fb63b4 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>