summaryrefslogtreecommitdiffstats
path: root/lisp
AgeCommit message (Collapse)AuthorFilesLines
2017-01-30Bump hc2vpp version to 1.17.01-FINALv1.17.01stable/1701Marek Gradzki3-7/+7
Also updates honeycomb dependencies to 1.17.01-FINAL Change-Id: I2f281234d142535d740649e966e6b08f8398905b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-26Lisp test coverageJan Srnicek4-28/+178
Change-Id: If780bbe08c0eee36a00b408b4a71383fa9d1e300 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-24Set hc2vpp version back to 1.17.01-SNAPSHOTMarek Gradzki3-7/+7
Change-Id: I4503dbc1f8737ca4d780e180a7c279c980f6a80e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-24Bump hc2vpp version to 1.17.01-RC21.17.01-RC2Marek Gradzki3-7/+7
Also updates honeycomb dependencies to 1.17.01-RC2 Expected results after change submission: 1) all hc2vpp jars are uploaded to https://nexus.fd.io/content/repositories/fd.io.release/io/fd/hc2vpp/ with 1.17.01-RC2 version set 2) honeycomb-1.17.01-RC2.noarch.rpm (outcome of hc2vpp-integration-1701-centos7) is uploaded to https://nexus.fd.io/content/repositories/fd.io.stable.1701.centos7/ io/fd/hc2vpp/honeycomb/1.17.01-RC2.noarch/ 3) honeycomb-1.17.01-RC2_all-deb.deb (outcome of hc2vpp-integration-1701-ubuntu1404) is uploaded to https://nexus.fd.io/content/repositories/fd.io.stable.1701.ubuntu.trusty.main/ io/fd/hc2vpp/honeycomb/1.17.01-RC2_all/ 4) honeycomb-1.17.01-RC2_all-deb.deb (outcome of hc2vpp-integration-1701-ubuntu1604) is uploaded to https://nexus.fd.io/content/repositories/fd.io.stable.1701.ubuntu.xenial.main/ io/fd/hc2vpp/honeycomb/1.17.01-RC2_all/ Change-Id: I2e281234d142535d740649e966e6b08f8398905b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-18HONEYCOMB-337 - Fixed ordering for PitrCfg writersJan Srnicek1-2/+4
PitrCfg holds reference to locator set, therefore must be deleted before Change-Id: Ic4d2d7e26126991a4426310e4e4a5f0516969fc9 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-12HONEYCOMB-296 - Reference checking in Locator setJan Srnicek2-6/+138
Reference must be checked while removing to prevent dead references Change-Id: I37cb426f73a3fa64d4e6795062d8d7affc0cbb2b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-01-04Set hc2vpp version back to 1.17.01-SNAPSHOTMarek Gradzki3-7/+7
Change-Id: I9501aad4fb54ba9190c1e0b4d6e7fb4ee7c33842 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-04Bump hc2vpp version to 1.17.01-RC1v1.17.01-RC1Marek Gradzki3-7/+7
Also updates honeycom dependencies to 1.17.01-RC1 Change-Id: I2e285527d142535d740649e966e6b08f8398905b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-04HONEYCOMB-322: fix hc error after vpp restart if local-mapping was configuredMarek Gradzki5-25/+21
In case of honeycomb restart, mapping context is read first. Then persisted config is being processed. Therefore customiers should not reject configuration if metadata they are going to add is already present in mapping context. Also includes: * locator-set and remote-mapping handling update * fixes write order of locator sets and local-mapping. Not included: * initializers for lisp (hc restart without vpp restart might fail) Change-Id: I82c1ee878d9ce074a6bd8197678653814514e6ca Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-07Set hc2vpp version to 17.01 to align with vpp releaseMarek Gradzki3-7/+7
Depends on https://gerrit.fd.io/r/#/c/4137 Change-Id: I11cc690bf5d12db5c7223f46a19c3f555213aead Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-02HONEYCOMB-300 - Adjacencies context pathJan Srnicek3-5/+17
Changed root context id to point correctly to Contexts trought augmentation Change-Id: I04a99438f0628ce429bcf8e4a00beba65ec400d3 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-25Merge "HONEYCOMB-282 - Lisp factories refactoring"Marek Gradzki14-599/+339
2016-11-25HONEYCOMB-290 - Revert of presence removalJan Srnicek1-0/+2
Presence is actually needed here, otherwise both mandatory leafs(table-id under vrf-subtable and bridge-domain-ref under bridge-domain-subtable) are required, which is unnecessary because sub-tables can be defined in any combination(none,one,both) This will recreate bug described in HONEYCOMB-290 till https://git.opendaylight.org/gerrit/#/c/48532/ is merged. In the mean time, whole subtree request must be used Change-Id: Id160888ea4b3e452288ce2d42d589dcc5319dd49 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HONEYCOMB-282 - Lisp factories refactoringJan Srnicek14-599/+339
Refactoring to remove boilerplate code/for more readability Change-Id: I1ed09160a183c748e698087edf57063e25e8d953 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HON-3 - Address logic refactoringJan Srnicek6-21/+20
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-289 - Type-aware read customizersJan Srnicek10-50/+61
Refactoring due to https://gerrit.fd.io/r/#/c/3898/ Change-Id: I3ddcc06aca0a730db9fd727a3d2b10cd085f870e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-24HONEYCOMB-275 - compilation error with HC runner and setUpJan Srnicek8-28/+28
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-21HONEYCOMB-290 - Removed presence for lisp sub-tablesJan Srnicek1-2/+0
Vrf/Bridge-domain sub-tables changed to structural containers Change-Id: Icaefcae6748837cdb4d6d731ec9cf5f67ff920b7 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-19Post split cleanupMaros Marsalek89-373/+361
- 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 Srnicek23-82/+1143
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-08HONEYCOMB-270 Add isPresent() to Readers/CustomizersMaros Marsalek1-2/+2
So that they can influence whether empty data is to be considered as present + Move registries implementations from util to impl + Introduce DelegatingReader trait + Extend GenericReader where possible to reduce duplication Change-Id: I5a416acd0c4eab1fbc30fcbe585719991dbe9215 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-04HONEYCOMB-276 - Mandatory for sub-tablesJan Srnicek1-1/+8
Added mandatory for sub-tables under vni-table Change-Id: I0f410cc0e79becafc16e7012395fa6269b278b98 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-11-03HONEYCOMB-259 - CacheKeyFactoryJan Srnicek13-67/+63
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 Marsalek60-47/+448
Change-Id: I9a7783bf072b2e2396f0fa1a784bcb57adb689b4 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-28Honeycomb-73 Extensible initializers for lispMaros Marsalek4-110/+30
Change-Id: I30b0f472a8ba79b74c92c1b8283d23e860ec78af Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-10-21Remove unused builders for union types generated by yangtoolsMarek Gradzki4-157/+0
Generated builders are not used in the runtime. Starting from ODL boron, strings that represent union types, are processed according to YANG RFC, that is in the order they are specified in the "type" statement, unitl a match is found. That makes builders for union types obsolete. Change-Id: If9289a0dde34f345a672103d2461a3acd00e2afd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-14HONEYCOMB-254 : Removed workaround for locator-set-indexJan Srnicek3-88/+40
Used value returned from api call instead of workaround with dumping Change-Id: Id44404579cde6fb20bb4e9c6d5b3e91fb4dbf2b1 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-10HONEYCOMB-252 - Reduced scope of dump executorsJan Srnicek27-901/+123
Change-Id: Ia426f855b13323369bcc7ec2cde0861421950476 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-07HONEYCOMB-154: update revison of models that changed since 16.09Marek Gradzki80-406/+414
Sets revision date to 14.12.2016 - API freeze for HC 1.17.01 Updated models: - lisp.yang - v3po.yang - vpp-vlan.yang - pbb-types.yang - vpp-pbb.yang Change-Id: Ib2b962c7756748ac357141ffbc6f5bc6668c97e3 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-06HONEYCOMB-236 - Unified read/write exceptionsJan Srnicek25-333/+229
Change-Id: Idde761d0c0c2c4d96555ef94dbdaa87fad889493 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-10-05HONEYCOMB-138 - Lisp L2 SupportJan Srnicek81-853/+4053
Change-Id: Idff4776a64a88be2e0a45ab1927978e40876ea92 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-30HONEYCOMB-230 : Refactor of Adjacencies api useJan Srnicek2-9/+10
Change-Id: Ia83a5792c0e86fd5054d713038c2ed0a1c44a34e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-28VPP-378: update jvpp package namesMarek Gradzki57-135/+135
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 Srnicek17-467/+112
Change-Id: I95ea94c3a1a581753f7eb667af7aacde832c21fd Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-28Fixed packages for NamingContextJan Srnicek3-4/+5
Change-Id: I017c68924e729ec5f7a4bff4d112f082f11d34cb Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-28Lisp test coverage increased to ~80%Jan Srnicek22-0/+1606
Change-Id: Id4e9072ebb8d66e532e30c1dc3bb6036bfdc9012 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-27HONEYCOMB-206: change package name to match groupIdMarek Gradzki38-69/+69
Change-Id: I74f769c09e86f08b1753e685a134d20e801bd7da Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-26HONEYCOMB-209 Configure maven siteMaros Marsalek6-8/+14
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: utility for stubbing MappingContext methodsMarek Gradzki5-69/+35
- 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 Srnicek29-228/+231
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 Gradzki7-173/+100
- 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-117/+52
- 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-21Updated Postman Collection for LispJan Srnicek1-116/+108
Change-Id: I0c5a5d8519476295501047cd392cbb65729d941d Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-21Fixed reading of operational state of lisp Jan Srnicek5-18/+61
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-19HONEYCOMB-196: unit test for LispModuleMarek Gradzki2-0/+106
Increases test coverage of lisp plugin to approximately 43%. Change-Id: I2d60eae05dab9c4277f1b601616b9be4262de7eb Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-14Dump cache management moved to translate-utilsJan Srnicek17-53/+53
Removed all references to vpp to be usable in any plugin Change-Id: Id63b06d643f4004e67b2502fc02e58cf3d238b3b Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-13 HONEYCOMB-211 - Fixed locator set filteringJan Srnicek3-47/+8
Change-Id: Ia8827040012ea03262727ff5909a68dac9dcb72a Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-09-13HONEYCOMB-211: workaround for issues introduced by VPP-376Marek Gradzki4-12/+14
Fix HC build issues introduced by https://gerrit.fd.io/r/#/c/2623/ Change-Id: I2e55b4c25c2f9ec505282addd4137b2dccf56f93 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-13Update lisp postman collection to reflect restconf port changeMarek Gradzki1-27/+27
introduced by 2836 Change-Id: I564b0b5961ca6218f458c8d462ca046af95aba03 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-09-12Fixed filtering by referenced interface for locatorsJan Srnicek1-6/+14
Change-Id: I471e9b9f2d2ecb0f8e3b3e181118de42247ba7ec Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>