summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src
AgeCommit message (Collapse)AuthorFilesLines
2019-05-29cleanup v3po customizersMichal Cmarada13-129/+91
- remove unnecessary full paths - reformat Change-Id: If918be3de8b4839cd3a50d73d9de7c3e0b32ab3d Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-29HC2VPP-392: skip init mtu for non-ethernet interfacesMichal Cmarada1-11/+10
when honeycomb is started all interfaces are loaded with additional Ethernet container. This then sometimes causes wrong identification of interfaces. Change-Id: Icd8833e611172094e4241a746d104f0057cb6581 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-28HC2VPP-411: fix revisions for updated modelsMichal Cmarada121-671/+676
Change-Id: I3ac251b1229a08d2c3c909697a6158e5996e6c9b Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-27HC2VPP-411: remove deprecated interface-stateMichal Cmarada135-660/+656
- 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-27HC2VPP-381: Validation support for V3PO moduleTibor Král57-625/+3094
Change-Id: If288d97dce15bcc6924d4dd65c640a20920f094d Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-05-24HC2VPP-411: Bump ietf-interfaces, ietf-ip, iana-if-types modelsMichal Cmarada76-206/+206
Change-Id: Ic042d96c9671729fd4f11efcd59c618a657d5bef Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-23use stats future from stats module in V3POMichal Cmarada2-1/+5
Change-Id: I038995fce5fdb171d3c9e569fa4bbd9bc2a87a6f Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-23move stats to separate moduleMichal Cmarada2-50/+1
Change-Id: Id349e926ecf336aeabac89afa45a5e0d0f37e36b Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-05-07Enable Interface Statistics in V3POTibor Král81-403/+989
Change-Id: Iffde84f2cd85e343c3c3a5943910f7c195c8d11d Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-05-06Update SwInterfaceDump request with required swIfIndexMichal Cmarada3-0/+17
Default value should be set to ~0 to dump all interfaces or single interface index to dump single interface. If it is desired to filter interface by name swIfIndex should be set to ~0 and nameFilter should be set to interface name together with nameFilterValid set to 1. Change-Id: I1412f1c3175d55b99a4e8e87742b940c3a0ac72e Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-23Fix GRE tunnel after API changesMichal Cmarada4-41/+59
Change-Id: I346a2e1793e3fc5758a23ca4f049e8118a81b54b Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-11HC2VPP-397: add support for java 11Michal Cmarada2-12/+20
- dependency updates - compilation error fixes - javadoc fixes Change-Id: Ic7371931b0728c888a39350a77c959121afb9786 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-04-08HC2VPP-406: fix build errors after ODL bump to neonMichal Cmarada17-35/+35
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 Cmarada100-303/+303
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-01-28remove vpp deprecated tap-cli interfaceMichal Cmarada75-987/+393
Change-Id: I5b78cd2c9d8250b6af691d124fd31bb1bf822fb1 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-14HC2VPP-300: Unify namespaces of V3PO modelsMichal Cmarada102-685/+674
Change-Id: Ibf74c4c1ea159bfcbe1de8bef4dac9bde3cb9ffd Signed-off-by: Tibor Král <tibor.kral@pantheon.tech> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-14HC2VPP-300: Unify namespaces of FIB modelsTibor Král7-10/+10
Change-Id: Ib24688d039c7e38afe468af542f62c821111e41f Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2019-01-08Revert StatisticsMichal Cmarada88-1507/+455
This reverts commit 91db56913c9b1fc9292637adf4d96a052a737f61. This reverts commit cdc4d09c152e985c93016ff61789bc699b97883d. Change-Id: I06cba1968f7379a7daa98b9e66375a5d4127b499 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2019-01-04Fix MacAddress API changeMichal Cmarada2-3/+3
Change-Id: I516b90dac084f169d1bf1cc74909777d0824b7cb Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-12-12HC2VPP-395: Nullable patchTibor Král1-5/+1
Change-Id: I21c83ad95b1ba236a0456bd1896eebb8bf33f893 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2018-12-12fix after VPP api changes for address type aliasesMichal Cmarada2-3/+3
Change-Id: I228340d362adcbec9e46c8e406337392caffaf37 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-12-05HC2VPP-395: Provide Interface statistics countersTibor Král88-455/+1511
Change-Id: If0f62b36b9d9dc6718ed62f81268ac0908f02297 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
2018-11-12Bump jvpp version to 19.01-SNAPSHOTMichal Cmarada3-38/+37
Also sets version of VPP package dependencies to 19.01. - fixes several changes made in VPP API Change-Id: Icca406f414bce30745026573c78a69eea09dc566 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-10-17HC2VPP-390: Tap v2 interface implementationTibor Král9-5/+767
Change-Id: I92fe8adabbb770a45ad47c56f5cd21262c4bd6e1 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-10-10HC2VPP-390: Tap v2 interface APIMichal Cmarada71-391/+391
- added support for Tap v2 in v3po yang model - fixed pattern for tap-name Change-Id: Id4c02d56879ca87f370396c920fb599dd7741594 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-09-28Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)Michal Cmarada14-16/+16
Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
2018-09-28Fix v3po interface typeMichal Cmarada3-8/+11
VPP introduced new flag for interfaces: portType (see https://gerrit.fd.io/r/#/c/14689/) This caused API changes and introduced new port types: - Normal - BVI - Unknown unicast (not supported by HC2VPP yet - HC2VPP-389) This patch fixes the current implementation for normal and BVI interface. Change-Id: I271aaab9887e3759fa90d9056bafe550c867761d Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
2018-07-04HC2VPP-79: use AddressTranslator for ip-address-no-zone translationMarek Gradzki9-95/+59
Change-Id: I46955630709e3d837f95f488cb2fe089952865c4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-04HC2VPP-275: use ip-address-no-zone in v3po YANG modelMarek Gradzki14-84/+84
The inet:ip-address type was used in HC models due to ODL bug: https://bugs.opendaylight.org/show_bug.cgi?id=6413 which was fixed long time ago... Change-Id: Icaa8ac1269c730243afba53bc663f39f7c90f36c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-03Bump v3po model versions from 2017-06-07 to 2018-07-03Marek Gradzki71-391/+391
Change-Id: I7ed600c929b130edf84c09d136e95e32cab4be9e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-03HC2VPP-346: use fib-table-list-ref for FIB to ifc assignmentMarek Gradzki6-24/+33
Change-Id: Ie57776ab9784b7c57630b7ea9ce9b96b71feb5a5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-02Fix VXLAN state readMarek Gradzki2-16/+31
Use UnsignedInts.toLong instead of (long) cast. Change-Id: I1b6875860019f3449bc32f16cd959f3084583d20 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-07-02HC2VPP-346: use fib-table-list-ref for VXLAN configurationMarek Gradzki4-6/+13
User is required to explicitly configure FIB tables using vpp-fib-management module. The change does not require modification of RESTCONF and NETCONF requests. Change-Id: Ie3cbff61281ba1a7a9e14c0a26cbd9ce6e44587f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-06-27BD: remove redundant null check in BridgeDomainCustomizerMarek Gradzki1-10/+8
Details objects cannot be null. Change-Id: I2a1c0991ec2ccfee4c6d35c77321c6cb67f4bb7f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-06-22HC2VPP-88: translation layer for af_packet interface managementMarek Gradzki8-2/+523
Includes postman collection with RESTCONF examples. Change-Id: If6f7ba1e2e7ab37433ebc5215e4731f1193c62a2 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-06-21Fix NPE in InterfaceDataTranslator.isInterfaceOfTypeMarek Gradzki2-6/+55
SwInterfaceDetails returned by dump manager are nullable. In that case isInterfaceOfType should return false. Change-Id: Iaf3d1f6c6923ed6863357fe2470716f135b6164f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-06-11HC2VPP-354: use hw_interface_set_mtu for Ethernet interfacesMarek Gradzki3-11/+22
The API was renamed by https://gerrit.fd.io/r/#/c/12930/ The VPP change spearates setting of hardware interface and software interface MTU. More details: https://git.fd.io/vpp/tree/src/vnet/MTU.md HC supports only hardware interface MTU configuration for Ethernet interfaces. MTU for software interfaces (per protocol MTU) is not supported (HC2VPP-355). Change-Id: I7eb1cb035a7b0f428a7bc7a9bb1c73819b52f0fa Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-04-19HC2VPP-308: forbid local0 deletionMarek Gradzki2-4/+23
Adds special case for local0 in InterfaceCustomizer.deleteCurrentAttributes. Change-Id: I1eb0826f90bd5dbbdb3b6cbb4b19ac5cadb1a68f Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit 48566d84cd9f4047d96541540cdfc9ef4936acf8)
2018-04-09Remove unused method parametersMarek Gradzki1-2/+1
Change-Id: Ib6bb2b3378c9bb883bfa9bd1348813f7845b6b59 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-03-19HC2VPP-289: fix 802dot1 identifiersMarek Gradzki21-167/+167
Indentity names should not start with number, so prefix them with '_'. Change-Id: Ic941410da4c5401a646be94679c82e7c5c96e646 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-02HC2VPP-157: use interface-ref instead of string nameMarek Gradzki8-13/+13
Change-Id: Iaf1287c6643c783ff2d31d9ef87e90aa85ea53f1 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>
2017-11-20Use IP Translators for creating ietf-inet-types DTOsMarek Gradzki3-81/+24
Cleans classes that uses custom IP translation code. Change-Id: Ia22a651d0bf0fcce143e8bf9aabcc326cfd50c2e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20Use InetAddresses.forString instead of InetAddress.getByNameMarek Gradzki3-15/+12
Unlike InetAddress.getByName(), Guava's InetAddresses.forString() never cause DNS services to be accessed. JDK equivalents whenever you are expecting to handle only IP address string literals, so there is no blocking DNS penalty for a malformed string. See: https://google.github.io/guava/releases/22.0/api/docs/com/google/common/net/InetAddresses.html#forString-java.lang.String- Change-Id: I7972c09f1f0a3a2688021302acbf6df112be7f72 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07Fix operational read for interface's MAC addressMarek Gradzki2-2/+8
Hc2vpp supports 48-bit addresses. VPP returns 64-bits, so ignore extended part. This patch updates MAC address handling broken by https://gerrit.fd.io/r/#/c/9090/ Change-Id: I7cc8d75e19f1f56e1f1adc23848a4a9baef87206 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-31Adapt to mac address representation change in l2.apiMarek Gradzki6-37/+22
https://gerrit.fd.io/r/#/c/9090/ changes mac representation from u64 to u8[] Change-Id: Ia82d5652926f8bd10c1c8fc3ad0e147b35dbee4c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-10-11Adapt notification producer to jvpp API changes (VPP-914)Matej Perina2-31/+42
Required by https://gerrit.fd.io/r/#/c/8377/ Change-Id: I91b5adda6ec8d9b011ebc1287fd2ec9811164b04 Signed-off-by: Matej Perina <mperina@cisco.com>
2017-08-28DumpCacheManager: make dumpParams optionalMarek Gradzki4-8/+4
Requires https://gerrit.fd.io/r/#/c/8185/ Change-Id: Ib2d529366bd3cf6bb292014026ab8053a19c0ed7 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-24NamingContext.getNameIfPresent should not fail if name is missingMarek Gradzki1-1/+7
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-24Move StaticCacheKeyFactory to honeycomb projectMarek Gradzki4-53/+8
Requires https://gerrit.fd.io/r/#/c/8169/ Change-Id: Ibb1482d350f4739c3ab33bc0ff678f06335af48c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>