summaryrefslogtreecommitdiffstats
path: root/java
AgeCommit message (Collapse)AuthorFilesLines
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-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-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 Cmarada1-13/+13
- 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-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-04Update package namesMichal Cmarada98-581/+581
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-02-27add ikev2 pluginMichal Cmarada3-0/+157
- this enables to build ikev2 plugin Change-Id: Ifffea577b29db053ac8ecef2359ecc62d85611b2 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-27Jvpp requirements cleanupMichal Cmarada1-3/+3
- 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-19JVPP-22: Update packagingMichal Cmarada1-8/+20
- 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 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 Cmarada1-189/+189
Change-Id: If696faab8afcf685b36d7a9b45028758ffd43f07 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-28update packagingMichal Cmarada1-43/+51
- 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-23initial commit19.04-rc0Michal Cmarada115-0/+10600
- 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>