summaryrefslogtreecommitdiffstats
path: root/vpp-common
AgeCommit message (Collapse)AuthorFilesLines
2017-12-11Clean Sonar warnings in JvppReplyConsumerMarek Gradzki1-13/+17
Change-Id: Ic664d0da1f3f253ee7d698c651354015792cc278 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-22Add missing @Override annotationsMarek Gradzki1-0/+1
Fix isses reported by Sonar thanks to IntelliJ's code inspection. Change-Id: I846590213e3e8ac7d3539d4de9940b32818625d5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit b1f0c71b032eb17d8cac1c5324745b759c2da87f)
2017-10-31Set hc2vpp version to 1.17.10.1-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: Ic1cca03f4375df306dca3bfe946cc2287a4ac44e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-31Bump Hc2vpp version to 1.17.10v1.17.10Marek Gradzki7-15/+15
Also updates honeycomb dependencies. Change-Id: I2f04e80f2c1da3d9ac82425f517e8fd3d5cd4213 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-31Set jvpp version to 17.10Marek Gradzki2-2/+2
Change-Id: If6ca87e134380d0a0e9814d87cf1c3f787072c5a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-19Set hc2vpp version back to 1.17.10-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: I4f7ec11c9b3564bbef0e9f2b96ee3d939d5a6971 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-19Bump hc2vpp version to 1.17.10-RC2v1.17.10-RC2Marek Gradzki7-15/+15
Also updates honeycomb dependencies Change-Id: Ifc6b3233b141236c3d2d70930e3a711a20344411 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Set hc2vpp version back to 1.17.10-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: I6fa53750c10dc914794d4d45ebc5fdb881e214c8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-04Bump hc2vpp version to 1.17.10-RC1v1.17.10-RC1Marek Gradzki7-15/+15
Also updates honeycomb dependencies Change-Id: Ifc6b3233b14f0d6c3d2d70930e3a711a20344411 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-28HC2VPP-232 - Secondary table lookup supportJan Srnicek1-0/+8
Ietf models now contains case table-lookup to be able to define lookup to secondary table. It must be separated to dedicated case as combining secondary-vrf and other next hop types(simple,multi,special) does not make sense, its either you define lookup to table, or you specify next hop of some kind. This patch works properly only for write, as read is affected by VPP-994/VPP-995. Read at this state can detect that route is using table lookup, but can't detect table that is used for that lookup. Also, HC2VPP-237 must be done in future Change-Id: Ia6976b35c6c1712d8add60beea7b0edbc4536974 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-18HC2VPP-229 - Combined honeycomb and vpp restart handlingJan Srnicek2-19/+63
Prevents honeycomb from attempting disconnection on different instance of vpp that it was connected to Change-Id: I8dedcaebb08ac75dc0fb9568ab66a011b1b1b676 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-09-07Ipv4AddressRange: remove unnecessary double->int convertionMarek Gradzki1-6/+2
Should fix https://sonar.fd.io/issues/search#issues=AViCMnel_ATy1iJVe-79 Change-Id: I798930dea057cac93ab95b6c1d6f660a21d84e74 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-07Fix error-handling issues found by SonarMarek Gradzki2-2/+2
Change-Id: Ic370f72c16beaf56003021a6a89f751de8b744b8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-07Fix multiple checkstyle and Sonar warings in ByteDataTranslatorMarek Gradzki1-36/+18
Change-Id: Ie1503af359430c47ca71f4ed0230e79daf5f04d4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-28Fix Ipv6Translator.arrayToIpv6Prefix to support single address blockMarek Gradzki2-11/+22
Change-Id: I91353a0c780ac2f61d15c677c25f647f826f71c3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-24NamingContext.getNameIfPresent should not fail if name is missingMarek Gradzki2-6/+47
Also makes InterfaceChangeNotificationProducer notification translation code more defensive. The issue was revealed by HC2VPP-216 and HC2VPP-220. Change-Id: I20792a51743ae621d86c1b9066d680bc2303ed82 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-14HONEYCOMB-381 - Usage of ShutdownHandler for jvpp componentsJan Srnicek4-29/+32
and notification producer Change-Id: I70e749de5b290c84e86a28625d5ec79c98de80f2 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-08-07Adapt hc2vpp to jvpp error logging improvementsMarek Gradzki1-1/+1
Requires https://gerrit.fd.io/r/#/c/7681/ Change-Id: Icd1d5dfb60f5eb79f9f4ab46f38d56f2b01672da Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-04Adapt hc2vpp to ODL Carbon bump in honeycombMarek Gradzki2-2/+2
Depends on https://gerrit.fd.io/r/#/c/6924/ Change-Id: I80597cb2846d174a548a5abf1e4add0ba0e17186 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-03Test logback configurationMarek Gradzki1-0/+15
DEGUB is only enabled for fd.io. Should significantly improve build time. Change-Id: Iabc2c82dc6eed335b8b025ff92e129cc07ece03f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-02Fix revision number for multi-naming-contextMichal Cmarada1-2/+2
Change-Id: I3915e5b37043897ac43ef6853af6d26c39eba768 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2017-08-01HC2VPP-187 - Naming context improvementsJan Srnicek2-0/+29
Adds option to throw specific exception on non existing mapping Change-Id: I1903ad8d0d660380680f99f0252e7ec6d9c8862d Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-07-07Bump jvpp version to 17.10-SNAPSHOTMarek Gradzki2-2/+2
Also sets version of vpp package dependencies to 17.10 Change-Id: I4e139ff2d485933c0de3339db50714a5c72e0a9e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-06Bump hc2vpp version to 1.17.10-SNAPSHOTMarek Gradzki7-15/+15
Change-Id: I744c3bc4962295b307b718764adb14035ee13d1d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-06Remove dependency on minimal-distributionMarek Gradzki1-1/+1
Accidentially introduced by https://gerrit.fd.io/r/#/c/7386/ Change-Id: Ie862dac542a3384fff42293b76d895b0dbf5b806 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-06HONEYCOMB-360 - Use binding-init module instead of whole distro coreMarek Gradzki4-4/+4
Change-Id: I86eb100ca96169c7cf8df7ba9f2a1c7e3e75d77f Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-07-01Change minimal-distribution to minimal-distribution-coreMarek Gradzki1-1/+1
The minimal-distribution-core was introduced by HONEYCOMB-373. Adoption is needed to remove indirect dependencies on various HC infra yang models to decrease footprint (HONEYCOMB-358 loads yang models based on maven dependencies). Change-Id: Iba639efb893deb8d51de09009750542f78dfdd50 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-23More specific exceptions in JvppReplyConsumerMarek Gradzki1-17/+17
Change-Id: I96bd342e84742f6c6ab7d4c6aa687bcb1baf9e7c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-06-19HC2VPP-168 - Gpe native entries support(operational read)Jan Srnicek1-0/+7
Change-Id: I50155013874a9e69d926a48a212d402e93945d9b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-06-16Rename yang files to match model revisionMarek Gradzki2-0/+0
Also order of revisions was sorted starting from most current. Change-Id: I21fd35cfdb1cc5601b3fb40c9f3755bd3b995b14 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-04-24HC2VPP-124 - Post lisp apis to one***Jan Srnicek1-3/+2
All apis starting with prefix lisp*** will be abandoned, so refactoring to one*** variants Change-Id: I603b3ce54ef1f8b6cefaaccedb87ccbf3ea38dd0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-04-24HC2VPP-106 - jvpp timeout configurationJan Srnicek7-10/+90
Allows dynamic configuration of jvpp timeout Change-Id: Iab113ec33f1efd8d150f0e525ef548a64ebf1a0b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-04-04Bump hc2vpp version to 1.17.07-SNAPSHOTMarek Gradzki7-17/+17
Also bumps honeycomb and vpp dependencies Change-Id: Ice9863b8afc1895d43b97953ed6d93e739730f5e 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>