summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2019-05-27HC2VPP-411: remove deprecated interface-stateMichal Cmarada1-2/+2
- new ietf-interfaces obsoletes interfaces-state container, only interfaces container should be used from now on. Change-Id: Ifb24611a3dca987bdf6b029d32e01d9b1f479fe8 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-24HC2VPP-411: Bump ietf-interfaces, ietf-ip, iana-if-types modelsMichal Cmarada4-7/+7
Change-Id: Ic042d96c9671729fd4f11efcd59c618a657d5bef Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-08HC2VPP-406: fix build errors after ODL bump to neonMichal Cmarada6-7/+7
This fixes build issues after ODL bump in Honeycomb (HONEYCOMB-443). Change-Id: I3bf203dd60d12057595b15ce1ad59302dc14e2a0 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-03-04HC2VPP-404: Update package names for JVPPMichal Cmarada19-32/+32
Fix package names for JVPP so it no longer contains vpp since it has been migrated outside of VPP project. Change-Id: I1e7a3fe4713beaaf7a1a0b41e7180d03bb7b74e5 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-02-06fix after changes in VPP APIMichal Cmarada1-2/+1
- fixes for mac adress - fixes for ipaddress - fixes refactoring in ipsec Change-Id: Idc3e3557b72a5f1ac5b32b9738d90ca23ed6ed9e Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-14HC2VPP-300: Unify namespaces of FIB modelsTibor Král7-21/+21
Change-Id: Ib24688d039c7e38afe468af542f62c821111e41f Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-01-14HC2VPP-300: Unify namespaces of Routing modelsTibor Král16-43/+43
Change-Id: I826213be33a2378433ca659a2e149c015f3b2030 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2018-09-28Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)Michal Cmarada11-30/+30
Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-07-18Fix binding name for routeMichal Cmarada1-2/+3
In specific case when route uses 128 mask and this value is converted to byte value it is changed to -128, which breaks internal naming of routes. This needed to be fixed because routes with 128 mask are not being read from VPP to operational state. Change-Id: Ic3b6ded721e7996587982b6a2b3bc8c9ebe03b43 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-06-22HC2VPP-344: Add FIB table management for routingMichal Cmarada9-101/+140
- update models with FIB table management - fixes implementation for FIB table management Change-Id: I5cf397d6e827cb14df970e14ee268ef870931bd4 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-06-08HC2VPP-317 - Implement FIB table management supportMichal Cmarada7-329/+2
changes: - Added new custom model vpp-fib-table-management - allows management of IPv4 and IPv6 Fib tables for VPP Change-Id: I3647dd659dbefabab233eacef666c3835e69320d Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-05-18Fix copyright for PantheonMichal Cmarada7-7/+7
- add full name for Pantheon Technologies in copyright. Change-Id: I653425ab952c09d4b8f9cedf4367bc8f56642ee3 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-05-16routing: log FibTableDoesNotExistException in ControlPlaneProtocolCustomizerMarek Gradzki1-2/+2
Fixes issue reported by Sonar. Change-Id: Ibbf5f39358e551a9de9a9602050184aba3c02e92 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-16routing: remove unused code from FibTableRequestMarek Gradzki2-24/+4
Removes delete method and dependency on FibTable service. Change-Id: I7b34cb8f80bb00379846501ddd1b2c3d4f049bb6 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-05-10HC2VPP-317 - Add FibService and FibTableServiceMichal Cmarada7-4/+377
VPP doesn`t support auto create for Fib tables anymore, when adding a new route. Adding FibService to check if table exists and FibTableService to add or delete ipv4/6 fib tables. Note: Need to implement full support for Fib Table management later. Change-Id: I15bd1b62357ab24a5eac970113bfcd2a52d29491 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-05-09HC2VPP-253 - Bump routing modelsMichal Cmarada35-1547/+933
This patch updates (for support of SRv6 and MPLS) routing models to: - hc2vpp-ietf-routing@2018-03-13.yang (RFC 8349, https://tools.ietf.org/html/rfc8349) - hc2vpp-ietf-ipv4-unicast-routing@2018-03-13.yang (RFC 8349) - hc2vpp-ietf-ipv6-unicast-routing@2018-03-13.yang (RFC 8349) - hc2vpp-ietf-ipv6-router-advertisements@2018-03-13 (RFC 8349) - hc2vpp-ietf-routing-types@2017-12-04 (RFC 8294 ,https://tools.ietf.org/html/rfc8294) Due to odl bugs these models were changed, see HC2VPP-298 for more details. Significant changes in updated models: - Routing instance was removed, we used vpp-routing-instance as single instance before, which is no longer needed. - Routing-protocol and Routing-protocols were refactored to Control-plane-protocol/s. Control-protocol now uses type and name as key - Route Key was changed from id to ipPrefix - Next-hop and Next-Hop-list were refactored See attached routing_postman_collection.json for updated data structures and examples for both IPv4 and IPv6 routes. For router advertisements see routing_advertisments_postman_collection.json Another fixes in this patch: - fixes in MPLS module due to Routing model updates - fixes doc module due to changes in Routing model Change-Id: I33704a50061aef97dfbd73a7701ff6fe5274d6f0 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-05-09HC2VPP-316 - Fix isTableLookup checkMichal Cmarada1-2/+1
Fixing condition, because VPP-995 is not relevant anymore. Change-Id: Ie444817c265f6a3e01b7694e60fd0ce76ec15bc5 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-05-03HC2VPP-314 - fix for IPV6 routes with 128 subnet prefixMichal Cmarada2-2/+2
VPP uses byte in range of 0 to 255 but when jni is used and this type is converted to java byte which has range of -128 to 127 it will convert it to negative value. It then fails to create Ip6Prefix from this value. Change-Id: Ic18686959682c153da2e4ee4a7f7841c9b56e5d3 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-04-09Remove unused method parametersMarek Gradzki2-4/+4
Change-Id: Ib6bb2b3378c9bb883bfa9bd1348813f7845b6b59 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-11Do not use createVrfIfNeeded of IpAddDelRouteMarek Gradzki1-3/+0
It was not used by VPP, recently removed by: https://gerrit.fd.io/r/#/c/9771/ Change-Id: Ic838e4daf95a98d675b3f0fda6e5fad242eb5bbd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-27Remove unnecessary boxing and unboxingMarek Gradzki1-8/+8
Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-09-28HC2VPP-232 - Secondary table lookup supportJan Srnicek25-251/+425
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-08-28DumpCacheManager: make dumpParams optionalMarek Gradzki3-12/+6
Requires https://gerrit.fd.io/r/#/c/8185/ Change-Id: Ib2d529366bd3cf6bb292014026ab8053a19c0ed7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16HONEYCOMB-386 - Hc2vpp Customizers updateJan Srnicek4-34/+0
Utilizes new default update implementation Change-Id: I9bf8473336274ba5fcfc18804f7b414937b3708e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-07-18HC2VPP-188 - Ordering fixed for routing entriesJan Srnicek1-4/+8
Change-Id: Iec8df0668a74f50b5abb4413e33c1fd3a0391779 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-05-04HC2VPP-130 - vpp-routing-ra namespace changed to unique valueJan Srnicek3-4/+4
Change-Id: I7606cecc5ea95b952c1d640b0f244208c21e4854 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-03-09HC2VPP-7 - split vpp-classifiers to separate moduleJan Srnicek8-24/+21
Split vpp-classifiers and vpp-classifiers acls' to separate modules. Contains TODO's for future change of dependencies Change-Id: I94f92ce2ec8960c67bd406f085f2fe928079ee23 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-02-23HC2VPP-83 - table id setup for special routesJan Srnicek5-66/+65
Added primary/secondary table id setup for special v4/v6 routes Change-Id: Id3ef3d383b5ad7b5b905a04f7f594fdf4b7a4104 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-02-22HC2VPP-74 - mpls vs ipv4 routeJan Srnicek1-7/+12
Added mpls invalid label to not resolve route as mpls Change-Id: I43f82b8074512ab8e9a28ff02ef80bf52213c3c4 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2017-02-13HC2VPP-66: unit tests for SLAAC writeMarek Gradzki1-2/+2
Change-Id: I0dd32f2d540a9187fbd97c3818470d2ee1ca47d7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-02-13Add support for RA configurationMarek Gradzki4-1/+354
Includes: * ietf-routing model augmentation that addresses VPP specific RA options (HC2VPP-64) * writers for RA cfg (HC2VPP-65) Change-Id: Iea523caaddcf03e38c8e5e7c586f1606a44d335b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-20HONEYCOMB-339: fix ip6 address string to byte conversionMarek Gradzki2-2/+2
Change-Id: I8c1d20b2be23bce27903b9d4149f59d3b83aacaa Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-01-12HONEYCOMB-325 - Null pointer while routing attr not definedJan Srnicek2-19/+16
Fixes multiple null pointers Change-Id: Iaa1df9a8b0a886d1835fe7cb87bcf7cf5130c6f5 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-12-15Revert "HONEYCOMB-315 - Quickfix to prevent JNI crash in routing"Marek Gradzki1-5/+0
This reverts commit 618d9fb357be27b06d27608fa1fc4aecb557c548. Depends on https://gerrit.fd.io/r/#/c/4325/ Change-Id: I0bc78e5510082fbfbaf99967f6fe3a9516dc7a4e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-12-14HONEYCOMB-315 - Quickfix to prevent JNI crash in routingJan Srnicek1-0/+5
Prevents JNI crash cause by unspecified int array in routing api request Reported as JVpp bug in VPP-559 Change-Id: I5da88e40080f96df2321c5d6ede5965283233c3e Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-12-02HONEYCOMB-307 - Prevent re-mapping of already mapped namesJan Srnicek1-3/+6
Prevent invoking addName while initializing data for names that are already in mappings Change-Id: I56063fb28cfb215bbdb1ed745aaa44544ffa77a0 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
2016-12-01HONEYCOMB-58 - Routing Plugin StructureJan Srnicek29-0/+3473
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>