summaryrefslogtreecommitdiffstats
path: root/vpp-common
AgeCommit message (Collapse)AuthorFilesLines
2017-04-27Bump jvpp version to 17.04Marek Gradzki2-2/+2
Change-Id: I94f9d161bd5940e91eace12ff10157301220427e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-04-12Set Bump hc2vpp version back to 1.17.04-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: I964023791311cdef34d92e0dd1867d99a44b2dcd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-04-12Bump hc2vpp version to 1.17.04-RC2v1.17.04-RC2Marek Gradzki7-15/+15
Also updates honeycomb dependencies Change-Id: I4527d86b4ebf6e8abcd2c8d62c5a14640802b3e7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-04-04Set version back to 1.17.04-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: Id6120f35676c38dda39f307518c22a7aa2b389e7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-04-04Bump hc2vpp version to 1.17.04-RC1v1.17.04-RC1Marek Gradzki7-15/+15
Also updates honeycomb dependencies and vpp package dependencies Change-Id: I4527d86b4ebf6e8e8a92c8d62c5a14640802b3e7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-03-24Add hc2vpp common parentsMarek Gradzki7-10/+14
- provides single root (hc2vpp-parent) for all projects to make site plugin work - fixes relative links in child poms - adds missing project names Partially based on https://gerrit.fd.io/r/#/c/4720 To test: - mvn clean install && mvn site site:stage - open hc2vpp/target/staging/hc2vpp-parent/hc2vpp-aggregator/index.html Change-Id: Ife5a8555748221cd8bcc8ad2fa48f1d0e98fff1d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-02-10HONEYCOMB-335 - Initialization test supportJan Srnicek3-4/+79
- initialization test support for container and list customizers - test samples Change-Id: If3fe4faf82a86c43fafdfab694a4388d50f61de4 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-02-08HC2VPP-11/HC2VPP-12 - refactored ipv4/6 logic/testsJan Srnicek3-23/+80
- all dumping logic moved under common abstract classes - added tests Change-Id: Ifdee84795bd8cf6f0d29349dd2cfcf9b2bbec1c9 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-20HONEYCOMB-339: fix ip6 address string to byte conversionMarek Gradzki2-31/+31
Change-Id: I8c1d20b2be23bce27903b9d4149f59d3b83aacaa Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-16HC2VPP-38 / HONEYCOMB-336 - removed mandatory from ace-ip-versionJan Srnicek1-0/+44
Removed mandatory statements Fixed multiple NPE Change-Id: I30af417b0594d9634a9352f7721285257fbcee1e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-12HONEYCOMB-296 - Reference checking in Locator setJan Srnicek1-0/+40
Reference must be checked while removing to prevent dead references Change-Id: I37cb426f73a3fa64d4e6795062d8d7affc0cbb2b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-11Bump of jvpp version to 17.04Jan Srnicek2-2/+2
Depends on https://gerrit.fd.io/r/#/c/4632/ Nsh stays on 17.01, till owner provides higher version Change-Id: I1f51699b6809d30dd0272301ebb1074a42863618 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-05Bump hc2vpp versoin to 17.04Marek Gradzki7-15/+15
Also updates version of honeycomb dependencies. Vpp API version bump moved to separate commit due to issues with jvpp jars. Change-Id: Id336393b00fe05e8ecee9b547dcfc6a49e1a98ec Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-04HONEYCOMB-102/HONEYCOMB-103 - Ipv6 SupportJan Srnicek1-0/+5
Contains - Ipv6 read/write Support for Interfaces - Ipv6 read/write Support for Subi-Interfaces - Postman collection with relevant requests Todo - Test coverage - HC2VPP-11 - Refactoring - HC2VPP-12 - Could be related to - HONEYCOMB-328 Tested - read/write for both interfaces and sub-interfaces - passes ok - init with following scenarios - vpp clean/hc has data - passes ok - vpp has data/hc clean - passed with error for sub-interface described in HONEYCOMB-328. The actual ipv4/ipv6 part passes ok Change-Id: Ib18acb9b18d6374dc5847e30db4049696d512e72 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-04HONEYCOMB-310: readers&initializers for vpp and macip aclsMarek Gradzki1-0/+12
Change-Id: I8892479123091e43bf191c544b6628d6254be564 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-23HONEYCOMB-310: initializers for interface acl assignmentMarek Gradzki2-0/+87
Change-Id: I6dcc1ef1abc9d314906d6d4fcc746dcfd28ec5fc Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-20HONEYCOMB-310: translation layer for acl pluginJan Srnicek1-1/+31
Not covered by this patch (moved to subsequent commits): - postman collection - distinguish ingress/egress ACLs while reading assigned acls - proper support for acl tag - unit tests improvements - read for acls (not necessarily assigned) - initializers Change-Id: I5a198ce1a6e20d0b1d95b4d2d83d0464fb86580c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07Set hc2vpp version to 17.01 to align with vpp releaseMarek Gradzki7-15/+15
Depends on https://gerrit.fd.io/r/#/c/4137 Change-Id: I11cc690bf5d12db5c7223f46a19c3f555213aead Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-06Bump jvpp version to 17.01Marek Gradzki2-2/+2
Change-Id: I61bd9c78ad4a1a654ed3d54e76163724a738913f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-01HONEYCOMB-58 - Routing Plugin StructureJan Srnicek16-15/+728
Read/Write support for ipv4/6 static routes. Restriction due to vpp implementation described in readme. Change-Id: I328f406a9b7cb8781f8becf98eca293cebe66859 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HON-3 - Address logic refactoringJan Srnicek7-121/+17
Ipv4/6 address logic refactored to not use InetAddresses.fromLittleEndianArray to prevent unnecessary reverting of address arrays after fix introduced by VPP-132. Removed unused ***reverted variants of conversion logic. Tested with these plugins - Lisp - V3po - Nat Change-Id: I6a0728f8b3dffd04e2edd822ec61542216cca824 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HONEYCOMB-275 - compilation error with HC runner and setUpJan Srnicek1-5/+11
Refactored setUp() method in WriteCustomizerTest to not trigger http://errorprone.info/bugpattern/JUnit4SetUpNotRun while used in combination with @RunWith(HoneycombTestRunner.class) Change-Id: Iba56b39399ddd7678dda97e094e935a3f02dd22c Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-19Post split cleanupMaros Marsalek44-214/+65
- change groupIds - change packages - update poms Change-Id: I343c5a292a67de1dd50687870ca4ab5b7276e93e Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-09HONEYCOMB-254 - Adjacencies dump supportJan Srnicek1-3/+0
Added mapping context between adjacency id(HC side) and combination of remote and local eids(vpp side) Change-Id: Icbba9130a82b7af51b23e6d6d68fcfbf49e66c99 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-03HONEYCOMB-259 - CacheKeyFactoryJan Srnicek1-13/+23
Provides logic for creating scoped keys Change-Id: I126bcb9255b4f8a3f2585f50e6e718948581e7f0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-28HONEYCOMB-274 Fix checkstyle license checksMaros Marsalek8-13/+126
Change-Id: I9a7783bf072b2e2396f0fa1a784bcb57adb689b4 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-17HONEYCOMB-249 Add External IP pool managementMaros Marsalek1-5/+12
Change-Id: I3e57b09733b8c7060445ed1af7a5edb3348dd4e1 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-14HONEYCOMB-249 Add Ipv4Range calulator utilityMaros Marsalek3-0/+174
Change-Id: If55fdafd6ed0a9c6acb9de74bf64154d3f26b2d5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-14HONEYCOMB-229 Introduce NAT to HCMaros Marsalek3-2/+7
Reflects SNAT from VPP: - 1:1 Static IPv4 mapping - interface in/out NAT feature management Bonus: - Support presence containers in infra Change-Id: Ieb38526f83edbae5e605d5c7e39bb22bbafc50e5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-13HONEYCOMB-207 : Configurable modules list for distributionsJan Srnicek14-158/+126
Export list of modules for built distribution on compile time according to distribution.modules property to ***module-config.txt Load aggregated set of modules on start from all descriptors in /modules folder Change-Id: Icdeb23536aee3a243a221d3f2ec5f340d387764e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-13HONEYCOMB-233: add support for mixing L2/L3 rulesMarek Gradzki2-1/+3
In case of L2 interfaces, acls are translated into a chain of classify tables and assigned as L2 table. In case of L3 interfaces, acls are translated into ip4 and ip6 chains (eth only rules go to both chains, rest - depending on ip-version). Limitations: - it is not possible to define L3 rule without specifying ip-version (common header fields for IP4/IP6 have different offsets), - eth rules on L3 interfaces are applied only to IP traffic (vpp classfier limitation). Change-Id: I7ca2648cabad8c6e936cf71a51e06596a42891e8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-06HONEYCOMB-236 - Unified read/write exceptionsJan Srnicek3-24/+126
Change-Id: Idde761d0c0c2c4d96555ef94dbdaa87fad889493 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-05HONEYCOMB-138 - Lisp L2 SupportJan Srnicek2-5/+18
Change-Id: Idff4776a64a88be2e0a45ab1927978e40876ea92 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-28VPP-378: update jvpp package namesMarek Gradzki13-24/+24
Depends on - vpp: https://gerrit.fd.io/r/#/c/3178 - NSH: https://gerrit.fd.io/r/#/c/3181 Change-Id: I1929947ccccc453aa32552fc42942a8b24ade157 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-28HONEYCOMB-210 - DumpEmptyCheck removedJan Srnicek2-107/+16
Change-Id: I95ea94c3a1a581753f7eb667af7aacde832c21fd Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-28Lisp test coverage increased to ~80%Jan Srnicek3-1/+181
Change-Id: Id4e9072ebb8d66e532e30c1dc3bb6036bfdc9012 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-27HONEYCOMB-206: change package name to match groupIdMarek Gradzki24-24/+24
Change-Id: I74f769c09e86f08b1753e685a134d20e801bd7da Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-27Exclude test utilities from sonar coverage statisticsMarek Gradzki1-0/+4
Change-Id: Icb6ac7652c739efa3a4bf90f0ae99e4225035c69 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-27HONEYCOMB-195: increase v3po coverage over 80%. Part IIMarek Gradzki1-0/+45
Change-Id: Ia28078cad65c1a45754f1d440c3f6413836aa60d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-26HONEYCOMB-209 Configure maven siteMaros Marsalek12-10/+32
To produce site for Honeycomb + javadoc asciidoc To build the site: mvn clean install site:attach-descriptor site mvn site:stage -DstagingDirectory=/home/mmarsale/tmp/stage Change-Id: I4246bb09ba02b74a2a9c84ee73f8dba02384fffa Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-09-26HONEYCOMB-116: generic merge test for reader customizersMarek Gradzki2-11/+34
Change-Id: I5c2505e6b3bcf622312f8dc324912507f6519a5b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-26HONEYCOMB-195: increase coverage for ietf-acl customizers over 80%Marek Gradzki2-2/+2
Change-Id: I6a56402e9309edcd84aba46689bbcb93d40e20f8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-26HONEYCOMB-116: utility for stubbing MappingContext methodsMarek Gradzki4-3/+131
- introduces MappingContextHelper (refactored ContextTestUtils) - updates all v3po and lisp unit tests to use MCH - updates lisp tests to mock EidMappingContext Change-Id: I73b1adda767db71388ca1c4d7206cfd7ee9c70e1 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-23HONEYCOMB-145 - Utility Class RefactoringJan Srnicek22-759/+939
problematic mockito-all changed to mockito-core( https://github.com/mockito/mockito/issues/324) Translate Utils Splitted to multiple Trait Interfaces Ipv4Translator - Logic for translation of ipv4-based data Ipv6Translator - Logic for translation of ipv6-based data MacTranslator - Logic for translation of mac-based data AddressTranslator - Aggregation trait for Ipv4/Ipv6/Mac JvppReplyConsumer - Logic for extracting replies from jvpp calls ByteDataTranslator - any byte-based conversions Plus some existing utility classes changed to traits Change-Id: I342b625954223966802e65dca0fabf8456c89345 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-23HONEYCOMB-116: utility for stubbing jvpp methodsMarek Gradzki4-2/+71
- introduces FutureProducer (inspired by https://gerrit.fd.io/r/#/c/2650/) - updates unit tests for v3po and lisp Change-Id: I56488bb1dcd6fcaf6821a58f99b528677e095662 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-22HONEYCOMB-116: base classes for testing customizersMarek Gradzki5-0/+254
- adds base class for testing writers - moves base classes to vpp-translate-test, subproject of vpp-common Change-Id: Ia42e2be3a95a33866d1996dd42a9bd1773b970a7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-21Fixed reading of operational state of lisp Jan Srnicek2-39/+57
Rejecting of empty locator-sets Added revert of searched key to match vpp address order Ignoring helper data returned by dumps Change-Id: I5ec74f48dc373099b5fe516553d769c20e4a98f8 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-19Fix path for VppCommonModule testMarek Gradzki1-0/+0
Change-Id: Ifad59d17997a3f4616982497b42c77c43def59b9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-19Unit test for VppCommonModuleMarek Gradzki3-0/+80
Change-Id: I76ffd960b67f4d1e8240f0d73f5eea2e84d143e9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-19Fix project names to match artifactIdMarek Gradzki1-1/+1
Incorrect names can obscure statistics provided by Sonar (uses project names, not artifact ids). Change-Id: I6d8450cfd57ac3c19116760e8a474b705de9750b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>