summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-01-17Add direct update support for static lspMarek Gradzki2-4/+28
This is workaround for HONEYCOMB-421 (subtree writers + default update does not work well currently). Fixes HC2VPP-277 (at least basic scenarios). Change-Id: I7659436d6c376bdc63eaa36291d5c08792faad94 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-12Set csit-test-branch to rls1801Marek Gradzki1-1/+1
Change-Id: I9ff9a08658bd3a077ec929555e121bfc77dbbeec Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-12Document csit-test-branch fileMarek Gradzki1-0/+5
Change-Id: I6f7c8699a4cdadb69a2682bc495f6f8b617cdc9e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-11Move jvpp_version file to jvpp dir 2/2Marek Gradzki1-8/+0
Change-Id: I8361e8fa26d54de5c79bea25274b9301c6ad02c8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-11Introduce hc2vpp_versionMarek Gradzki3-7/+21
Hc2vpp jar versioning is currently slightly different than honeycomb DEB/RPM versioning. This patch introduces hc2vpp_version to reflect that difference and simplify release process. In the future unification of versioning scheme should be considered. Change-Id: I6b6f3c39a7bee9de86163b107f5e6ba941c839ee Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit 3dd06d40b35c5fc3a9e04a7314daf163647b0192)
2018-01-10Set hc2vpp version back to 1.18.01-SNAPSHOTMarek Gradzki74-170/+170
Also sets honeycomb DEB/RPM package version to 1.18.01-RC2~$BUILD_NUMBER Change-Id: I7d1916b9e464d957d55b620e746cf763c83943a8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-10Bump hc2vpp version to 1.18.01-RC1v1.18.01-RC1Marek Gradzki74-170/+170
Change-Id: I5c7d5de7e3963c42fb1a133b17e9c8f3d415821f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-10Introduce hc2vpp stable/1801 branchMarek Gradzki2-2/+3
Change-Id: If2a040aa10bdd30f2001d164bd18b7ac3532b020 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-10Move jvpp_version file to jvpp dir 1/2Marek Gradzki3-2/+10
Change-Id: I1d7132152561cd8417632ccc16942e2b527f9aa4 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-09BGP demo: include vpp and hc version in the Readme.txtMarek Gradzki1-3/+3
Change-Id: I1c7c3337c392c8cdd5c301af6daf5d04b499d2d0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-09BGP demo: exit init.sh if VPP failed to startMarek Gradzki1-2/+11
Change-Id: I4fa97a404eb52da7ff73d527f5b28e0f5014b521 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-08BGP-HC docker exampleMarek Gradzki11-1/+474
Shows how to announce BGP prefix from one HC instance to another. Configuration (RESTCONF) is done over builtin docker0 network. Data plane is using veth pair that connects containers. BGP is also using veth but via unnumbered tuntap. Change-Id: Ia18b0729e12a4893ba559d0a68a9e962e58d2a2f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-03HC2VPP-274(dhcp.yang): use inet:ip-address-no-zone instead of inet:ip-addressMarek Gradzki8-50/+55
The zone index is not needed in case of dhcp.yang. It was introduced due to ODL bug: https://bugs.opendaylight.org/show_bug.cgi?id=6413 Change-Id: Ia32a2e6cc0c4ec31bd9b30392a3a558b28568fb2 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-02HC2VPP-157: use interface-ref instead of string nameMarek Gradzki9-14/+19
Change-Id: Iaf1287c6643c783ff2d31d9ef87e90aa85ea53f1 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-02Document changes to ietf-routing@2014-05-24.yangMarek Gradzki1-1/+6
The special-next-hop grouping was renamed to special-next-hop-grouping due to ODL's Binding Specification bug. Change grouping name back requires switching to Binding Specificiation v2 (HONEYCOMB-420). Change-Id: I2390176c06a7f64ae0261d62c8bc4f3d2ae193ca Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2018-01-02mpls-api: add missing yang dependenciesMarek Gradzki1-0/+8
Change-Id: I8b93211bcee0b7373fb8370f15e130ce8aa05fbf Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-22HC2VPP-221: postman collection with configuration examplesMarek Gradzki1-0/+158
Change-Id: Ibc41828a7dda1136fda5a034af638564ba8ca31d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-22HC2VPP-268: add non-eos MPLS and IP FIB entriesMarek Gradzki4-149/+364
VPP manages separate eos and non-eos forwarding chains, so non-eos FIB entry is also needed. Imposing received outgoing label on IP packets is also required as described in https://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-07#page-10 and https://tools.ietf.org/html/draft-ietf-spring-segment-routing-msdc-08#section-4.2.2 Change-Id: Idb91dc44beb64f614f02a95ef0f4b8495c6aeb69 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-20HC2VPP-268: BGP prefix SID translationMarek Gradzki8-3/+532
Missing features (to be addressed in subsequent commits): - non eos VPP FIB entry - push label entry Change-Id: I17ca7e3ce85ebb55aaa4438db34305ec30352798 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-19Scripts for installing jvpp jars to local mvn repoMarek Gradzki4-11/+101
By default hc2vpp build downloads latest jvpp packages from nexus.fd.io. They might not be compatible with installed vpp (e.g. in case of non-backward compatible vpp api changes). In order to prevent API mismatch, it is required to use jvpp version corresponding to the vpp installed. The patch includes scripts that can be used before building hc2vpp to install jvpp jars from vpp build dir or vpp-api-java package. Change-Id: I9aa0dc37921e022e5644c54238d3d579f6eb5ba8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-13(Multi)NamingContext: increment after computing maxMarek Gradzki3-23/+39
Instead of incrementing all elements of stream and applying max, first compute max and then increment. Change-Id: I4e45ffa74d9b8685abd7bafaddc77d1d9850abdb Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-11Repleace attribte references in bgp_in_honeycomb_user_guide.adocMarek Gradzki1-0/+1
Change-Id: Ic9cf2e4dd47fa9a84a81ad2b85e0ab19caa01c2d Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-11Fix module config version in BGP docsMarek Gradzki2-1/+2
Change-Id: I2215632ae5864f37738f5a4b907f8b2894ab849b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-11Clean Sonar warnings in JvppReplyConsumerMarek Gradzki1-13/+17
Change-Id: Ic664d0da1f3f253ee7d698c651354015792cc278 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-12-11Do not use createVrfIfNeeded of IpAddDelRouteMarek Gradzki8-33/+27
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-12-05Remove vpp-api-java from DockerfileMarek Gradzki1-13/+9
The vpp-api-java package is not directly used by honeycomb. Java API bindings are included in honeycomb package. Change-Id: I75dafd79cc8e9f1fc551cd43fcf3a46738b0dd2e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-30Remove dead stores and unused fieldsMarek Gradzki7-13/+3
Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-28MPLS SR configuration examplesMarek Gradzki11-6/+1149
Provides examples of MPLS SR config using Honeycomb for the following topology: A / vpp1 – vpp2 – vpp4 \ // \ –– vpp3 –– B Each vpp node represents docker container with honeycomb running. A and B represent egrees nodes modeled using tap interfaces. Scripts for building topology and Postman collection with example requests included. Change-Id: I96099d9b5b2af50bf48962c869ad5b2474673227 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-27Include vim-tiny into hc2vpp docker imageMarek Gradzki1-2/+2
Change-Id: Ib13497d00f244a001ec6b0605745d76e79a16ccc Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-27Remove unnecessary boxing and unboxingMarek Gradzki6-37/+23
Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-27Various scripts for creating and connecting hc2vpp docker containersMarek Gradzki17-0/+185
Change-Id: I755a23ba279a84600edfa2ddef89c2fe645c7945 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-24Add clean script for xenial package generationMarek Gradzki1-0/+4
Change-Id: I3cfe9d53cb1a8c992ebd972c835f76611f3a5727 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23HC2VPP-255: update MPLS confguration examplesMarek Gradzki1-12/+138
Change-Id: I1eccee43fb34ebe31559f01c4eacbcf45897685a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23HC2VPP-259: add support for mpls swap-and-forwardMarek Gradzki11-109/+347
Limitations: - only IPv4 next hop address - swap is supported only for the last label in the stack - only single outgoing label is supported. Change-Id: I9479e3d322561ed94683bd206e7e7852250d788c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23HC2VPP-259: add support for ipv4 lookupMarek Gradzki3-1/+225
Change-Id: Ic6a2da08a8839bb42366b124737bb5243671815b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23HC2VPP-259: add support for mpls lookupMarek Gradzki8-121/+461
Translates pop-and-lookup operation of /hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpl:mpls/ hc2vpp-ietf-mpls-static:static-lsps/static-lsp to mpls_route_add_del call. Configuring mpls lookup-type, as defined in vpp-mpls yang module, is required. Other lookup types (ipv4/ipv6) are not supported yet. Change-Id: If0580c6db69ee6c5f22a32bde031dbb6f852420f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23HC2VPP-259: augment pop-and-lookup operation with vpp-label-lookup-attributesMarek Gradzki2-1/+106
Introduces vpp-mpls@2017-11-03.yang, which adds possibility to specify VPP specific label lookup options: - mpls-lookup-in-table - ip4-lookup-in-table - ip6-lookup-in-table Equivalent of CLI command: mpls local-label XXX-lookup-in-table N Change-Id: I32c474ae3759922f2bc5487603baf7d9871edb7e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-23Do not consume ReadFailedException in RemoteMappingCustomizerMarek Gradzki1-12/+9
Also fixes other issues found by static analysis (unecessary boxing, formatitng). Change-Id: I063ccf4334ebdecf944ca1470e677c95a0fd0bdd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-22Add missing @Override annotationsMarek Gradzki9-0/+10
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-20Refactor IP translators to use IetfInetUtilMarek Gradzki6-64/+22
Use efficient factory methods for ietf-inet-types DTOs where possible. Also cleans up some duplicated and unused code. Change-Id: I58f4163edba0dcd30e5e044cf701788446d86a0f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20Use InetAddresses.forString instead of InetAddress.getByNameMarek Gradzki5-51/+17
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-20HC2VPP-255: postman collection with MPLS config examplesMarek Gradzki1-0/+246
Examples of requests showing how to enable/disable MPLS on given interface and how to push labels. Change-Id: If6f6f708a9af53131ef57fede07a77fc0943c9ee Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-20HC2VPP-258: add support for MPLS label pushMarek Gradzki4-4/+386
Translates impose-and-forward operation of /hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpl:mpls/ hc2vpp-ietf-mpls-static:static-lsps/static-lsp to ip_add_del_route call. For single outgoing-label, use simple-path out-segment. For multiple outgoing labels, use path-list out-segment with single path (multiple path support is not implemented yet). See postman collection for examples. TODOs: - only IPv4 prefixes and next-hops are supported (HC2VPP-264). Change-Id: I318e722edbc1f7ffd3eff2f308fc73c2062283c0 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-16Update ODL references in BGP documentationMarek Gradzki2-4/+5
Hc2vpp 18.01 is using ODL Nitrogen since https://gerrit.fd.io/r/#/c/9258/ and https://gerrit.fd.io/r/#/c/9259/ Change-Id: I4d7f2b28b0674b7ab7e248caba84e62a21c1c977 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-09HONEYCOMB-385: adapt hc2vpp to Nitrogen bumpMarek Gradzki2-3/+3
Change-Id: I0f1e2085f1687e1c8c0edcc526af048a429788e8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07Update release script with proper snapshot versionsMarek Gradzki1-7/+19
Includes examples of snapshot versions for honeycomb packages that preserve package ordering. Based on https://gerrit.fd.io/r/#/c/9143/ Change-Id: I117036f89ec92b5c1bc81cce72d9b1383df6543b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-07Fix operational read for interface's MAC addressMarek Gradzki3-4/+14
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-11-07HC2VPP-257: MPLS interface managementMarek Gradzki8-0/+422
Translates /hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/interface to sw_interface_set_mpls_enable which is equivalent to: set interface mpls [...] enable MPLS table is created before configuring MPLS using mpls_table_add_del (required since VPP 17.10). Reading MPLS configuration state is not supported (VPP API is missing). Change-Id: I3f1b987c3669b0836a27649a711e75d0dc37a779 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-11-06HC2VPP-256: MPLS APIMarek Gradzki8-0/+1561
Adds following models: - hc2vpp-ietf-mpls - hc2vpp-ietf-mpls-static - hc2vpp-ietf-routing-types Models were modified due to YANGTOOLS/MDSAL issues and some problems with the models itself. More information can be found in the YANG files. Original YANG files were downloaded from https://github.com/ietf-mpls-yang/te/ Change-Id: I3d04a3bf8be026fbe74a6f5833d38e980490e737 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>