Marek Gradzki [Thu, 22 Mar 2018 11:48:19 +0000 (12:48 +0100)]
v3po: fix issues found by pyang
Change-Id: Icbe45830641ba89a1e136401528acdb2b836d12e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 11:34:39 +0000 (12:34 +0100)]
samples: fix issues found by pyang
Change-Id: I7506e9d37daef097b252a07f30c9d9f80790cf11
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 11:30:30 +0000 (12:30 +0100)]
routing: fix issues found by pyang
Change-Id: If6db0aa4d02b15c4997d9552e678d6d9f58a756a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 09:49:59 +0000 (10:49 +0100)]
nat: fix issues found by pyang
Change-Id: Ic4375e85684a035323499963172e59042b0f3dcf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 09:41:20 +0000 (10:41 +0100)]
mpls: update yang model metadata
Change-Id: Iba95103cceb31176ef6e0550ad0f7d2873bb569a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 07:17:05 +0000 (08:17 +0100)]
lisp: fix issues found by pyang
Change-Id: Ia48f32dca30e74c3d132556a85e38d70802f6c83
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 06:58:36 +0000 (07:58 +0100)]
l3: update yang model metadata
Adds organization and contact statements.
Includes copyright in the module description.
Change-Id: I1ae330d878e929025e034f6ac79537167e6f0aaf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 06:31:28 +0000 (07:31 +0100)]
l3: fix issues found by pyang
Change-Id: If1bcf0584f3795ff50c893dbec53e17479a1cf8e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 06:13:53 +0000 (07:13 +0100)]
interface-role: update yang model metadata
Adds organization and contact statements.
Includes copyright in the module description.
Change-Id: I6f56beac1b40edbbe24a1ffc5ec0fe7fba8afbb5
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 05:57:18 +0000 (06:57 +0100)]
interface-role: fix issues found by pyang
Change-Id: Ic773951c4d5177d47dc5b19d4e78e388d70019ac
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 05:51:26 +0000 (06:51 +0100)]
dhcp: update yang model metadata
Adds organization and contact statements.
Includes copyright in the module description.
Change-Id: I59bb9d90390a6c9458faa628b3ffca5000f71c49
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 22 Mar 2018 05:37:38 +0000 (06:37 +0100)]
dhcp: fix issues found by pyang
Change-Id: Ife6b8703b2e6d9237701066dcd08dc8aa70afc6b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 21 Mar 2018 16:17:53 +0000 (17:17 +0100)]
acl: update yang model metadata
Adds organization and contact statements.
Includes copyright in the module description.
Change-Id: If6b51ebbf74366722d16b725f6ddb058a7fec033
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 21 Mar 2018 13:14:46 +0000 (14:14 +0100)]
acl: fix issues found by pyang
Fixes order of import statements, removes unused imports, etc.
Change-Id: I53238e6b8bd217964b8951215b580f59e254bb9e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 19 Mar 2018 19:07:53 +0000 (20:07 +0100)]
HC2VPP-289: fix 802dot1 identifiers
Indentity names should not start with number, so prefix them with '_'.
Change-Id: Ic941410da4c5401a646be94679c82e7c5c96e646
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Michal Cmarada [Tue, 13 Mar 2018 13:18:00 +0000 (14:18 +0100)]
Update Docker file for demos
Change-Id: I618b060fbc2d76332cfaa60cac309fb96197797b
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Marek Gradzki [Mon, 12 Mar 2018 07:50:58 +0000 (08:50 +0100)]
Adapt mpls plugin to recent VPP API changes
MPLS API changes were introduced by:
https://gerrit.fd.io/r/#/c/10781/
Change-Id: I0423a4cfdf3f0654324118a1d34864a079bff5d1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 2 Mar 2018 13:12:01 +0000 (14:12 +0100)]
Revert "Fix generating of docs"
The actual issue occurs only locally if yang model was moved
from one module to other and generated java files were not
removed from the first location (see HC2VPP-286).
Having doc generator failing in such cases might be annoying,
but will also prevent duplicating yang models.
This reverts commit
6abf9e092424f484e3f16b72d05f8fad0aa0f16e.
Change-Id: I2e76ccc80f5a2f08a1b61df1d27ab41752b629b8
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Michal Cmarada [Fri, 2 Mar 2018 12:03:09 +0000 (13:03 +0100)]
Fix generating of docs
- when multiple ClassPaths pointed to the same class,
ClassPathTypeIndex failed on duplicate key. Issue is resolved
by ignoring other keys that refer to the same class and for every
class key is genereated only once.
Change-Id: I67fc783a335400c936cd52a0ba9118ab53402800
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Marek Gradzki [Thu, 1 Mar 2018 15:44:53 +0000 (16:44 +0100)]
Move ietf-routing-types to routing-api
Current routing implementation does not use it,
but other features planned for 18.04 (e.g. SRv6) will do.
Change-Id: I0124ea27b5d24c1ac2e5ad196dc05df3a970d1c7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 27 Feb 2018 09:24:18 +0000 (10:24 +0100)]
Fix mdsal-model-artifacts dependency for routing-api
The routing-api module used outdated version of mdsal models (0.8.2-Beryllium-SR2).
The mdsal-model-artifacts dependency is managed in the honeycomb-parent,
so it should be removed from routing-api pom.xml.
Change-Id: I31523870044990bbf288fd7ef062c8d8b0e01cc7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 23 Feb 2018 08:40:13 +0000 (09:40 +0100)]
Remove usages of Sun's Nullable
use javax.annotation.Nullable instead.
Change-Id: Ia570d58dabb88c3b4ac7ef3a5e170d12434e9347
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
46f59f5928e191d991313308a144d6792f396d05)
Marek Gradzki [Thu, 1 Feb 2018 05:52:24 +0000 (06:52 +0100)]
Release notes update after releasing 1.18.01
Change-Id: I43c92fa286e11091edd62262354036626bf877e1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 31 Jan 2018 14:38:48 +0000 (15:38 +0100)]
Update BGP INET examples
- removes LU examples
- moves postman collection to inet dir
- updates BGP user guide
Change-Id: I5844508bcd1898a9aec9b2d07fb66fb1cdf62098
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
33980cbf88a02a511c13d727eb6dc44d2155f571)
Marek Gradzki [Wed, 31 Jan 2018 14:27:33 +0000 (15:27 +0100)]
HC2VPP-270: BGP Prefix SID configuration examples
Change-Id: Iaee4a94f2e306405338adf4aad3ead14ee2c094e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
74d447efebe9adc904d477b68d37ca709112ab4c)
Marek Gradzki [Wed, 31 Jan 2018 13:39:29 +0000 (14:39 +0100)]
HC2VPP-280: make next-hop optional for impose-and-forward
Next hop address is not mandatory in VPP CLI, e.g.
ip route add 192.0.2.11/32 via loop0 out-labels 3
Also hc2vpp-ietf-routing-types@2017-02-27.yang defines it as optional.
Change-Id: I6bd63a3ac75d40b14ae553e128b7ebe43dee5118
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
710a7932be189a6bfc342b471efa1044f8a9798a)
Marek Gradzki [Wed, 31 Jan 2018 13:39:29 +0000 (14:39 +0100)]
HC2VPP-279: support special labels in hc2vpp-ietf-routing-types@2017-02-27
The orginal ietf-routing-types model supports them, but it was patched
due to ODL BUG (MDSAL-269).
Change-Id: I70745a1bcd49b7eda21085c0c092af5a0f6bfaa0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
9f215a89a3d600c79ec44862abcbaede1f94a857)
Marek Gradzki [Thu, 18 Jan 2018 11:03:34 +0000 (12:03 +0100)]
Make rpmbuild.sh use hc2vpp_version
Another step towards hc2vpp release process.
Change-Id: I873782b79368bbf7ee569920378ad53651802e37
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 17 Jan 2018 15:25:36 +0000 (16:25 +0100)]
Add direct update support for static lsp
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>
(cherry picked from commit
fc06ca33bc587ba2acff16e59645b3d386aa498d)
Marek Gradzki [Wed, 31 Jan 2018 08:53:25 +0000 (09:53 +0100)]
Update VPP API to Yang index
Adds MPLS and BGP prefix SID modules
Change-Id: Ieae6223a9e24253b525cb65b72119525a6aa6a23
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
a040042f60d22fe75047f223fe12ca6295f97f41)
Marek Gradzki [Mon, 22 Jan 2018 11:33:07 +0000 (12:33 +0100)]
Fix jvpp install scripts
Change-Id: Ia1fdba64b6dacd1cb7c824d5cb34d98face1ec52
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit
c4c23ef02f8f8a4198637458ebf8558d778bfa49)
Marek Gradzki [Fri, 12 Jan 2018 13:05:30 +0000 (14:05 +0100)]
Document csit-test-branch file
Change-Id: I6f7c8699a4cdadb69a2682bc495f6f8b617cdc9e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 11 Jan 2018 07:43:27 +0000 (08:43 +0100)]
Move jvpp_version file to jvpp dir 2/2
Change-Id: I8361e8fa26d54de5c79bea25274b9301c6ad02c8
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 11 Jan 2018 07:28:31 +0000 (08:28 +0100)]
Bump jvpp version to 18.04-SNAPSHOT
Also sets version of vpp package dependencies to 18.04.
Change-Id: I0b3faf6418ce9055ad05da41ba4fb022992f3784
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 11 Jan 2018 07:22:14 +0000 (08:22 +0100)]
Update jira project version in hc2vpp 1.18.04 release notes
Change-Id: I105dab898cb47155ee70836066c38f760603576d
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 10 Jan 2018 09:51:11 +0000 (10:51 +0100)]
Introduce hc2vpp_version
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>
Marek Gradzki [Wed, 10 Jan 2018 12:48:46 +0000 (13:48 +0100)]
Bump hc2vpp version to 1.18.04-SNAPSHOT
Change-Id: I785627fbe4a1af69feb1f81aacefb33ba0d852b6
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 10 Jan 2018 07:08:27 +0000 (08:08 +0100)]
Move jvpp_version file to jvpp dir 1/2
Change-Id: I1d7132152561cd8417632ccc16942e2b527f9aa4
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 9 Jan 2018 10:14:49 +0000 (11:14 +0100)]
BGP demo: include vpp and hc version in the Readme.txt
Change-Id: I1c7c3337c392c8cdd5c301af6daf5d04b499d2d0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 9 Jan 2018 07:15:04 +0000 (08:15 +0100)]
BGP demo: exit init.sh if VPP failed to start
Change-Id: I4fa97a404eb52da7ff73d527f5b28e0f5014b521
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 13 Dec 2017 11:25:58 +0000 (12:25 +0100)]
BGP-HC docker example
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>
Marek Gradzki [Wed, 3 Jan 2018 07:37:30 +0000 (08:37 +0100)]
HC2VPP-274(dhcp.yang): use inet:ip-address-no-zone instead of inet:ip-address
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>
Marek Gradzki [Tue, 2 Jan 2018 13:04:33 +0000 (14:04 +0100)]
HC2VPP-157: use interface-ref instead of string name
Change-Id: Iaf1287c6643c783ff2d31d9ef87e90aa85ea53f1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 2 Jan 2018 07:38:42 +0000 (08:38 +0100)]
Document changes to ietf-routing@2014-05-24.yang
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>
Marek Gradzki [Tue, 2 Jan 2018 07:04:42 +0000 (08:04 +0100)]
mpls-api: add missing yang dependencies
Change-Id: I8b93211bcee0b7373fb8370f15e130ce8aa05fbf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 22 Dec 2017 15:04:08 +0000 (16:04 +0100)]
HC2VPP-221: postman collection with configuration examples
Change-Id: Ibc41828a7dda1136fda5a034af638564ba8ca31d
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 22 Dec 2017 14:08:19 +0000 (15:08 +0100)]
HC2VPP-268: add non-eos MPLS and IP FIB entries
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>
Marek Gradzki [Wed, 20 Dec 2017 11:54:11 +0000 (12:54 +0100)]
HC2VPP-268: BGP prefix SID translation
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>
Marek Gradzki [Tue, 19 Dec 2017 09:19:43 +0000 (10:19 +0100)]
Scripts for installing jvpp jars to local mvn repo
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>
Marek Gradzki [Wed, 13 Dec 2017 16:15:53 +0000 (17:15 +0100)]
(Multi)NamingContext: increment after computing max
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>
Marek Gradzki [Mon, 11 Dec 2017 11:02:34 +0000 (12:02 +0100)]
Repleace attribte references in bgp_in_honeycomb_user_guide.adoc
Change-Id: Ic9cf2e4dd47fa9a84a81ad2b85e0ab19caa01c2d
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 11 Dec 2017 09:50:53 +0000 (10:50 +0100)]
Fix module config version in BGP docs
Change-Id: I2215632ae5864f37738f5a4b907f8b2894ab849b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 11 Dec 2017 07:52:18 +0000 (08:52 +0100)]
Clean Sonar warnings in JvppReplyConsumer
Change-Id: Ic664d0da1f3f253ee7d698c651354015792cc278
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 11 Dec 2017 08:02:02 +0000 (09:02 +0100)]
Do not use createVrfIfNeeded of IpAddDelRoute
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>
Marek Gradzki [Tue, 5 Dec 2017 06:57:22 +0000 (07:57 +0100)]
Remove vpp-api-java from Dockerfile
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>
Marek Gradzki [Thu, 30 Nov 2017 13:20:23 +0000 (14:20 +0100)]
Remove dead stores and unused fields
Change-Id: I3ad4e1f1aae9ed52911acbed11d931349ad94da9
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 27 Nov 2017 06:49:48 +0000 (07:49 +0100)]
MPLS SR configuration examples
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>
Marek Gradzki [Mon, 27 Nov 2017 15:50:48 +0000 (16:50 +0100)]
Include vim-tiny into hc2vpp docker image
Change-Id: Ib13497d00f244a001ec6b0605745d76e79a16ccc
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 27 Nov 2017 06:50:49 +0000 (07:50 +0100)]
Remove unnecessary boxing and unboxing
Change-Id: I9f7cf7d7ecb97d7da449dac679f2d15438ac4970
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 24 Nov 2017 13:24:53 +0000 (14:24 +0100)]
Various scripts for creating and connecting hc2vpp docker containers
Change-Id: I755a23ba279a84600edfa2ddef89c2fe645c7945
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Fri, 24 Nov 2017 09:41:40 +0000 (10:41 +0100)]
Add clean script for xenial package generation
Change-Id: I3cfe9d53cb1a8c992ebd972c835f76611f3a5727
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Thu, 23 Nov 2017 11:50:57 +0000 (12:50 +0100)]
HC2VPP-255: update MPLS confguration examples
Change-Id: I1eccee43fb34ebe31559f01c4eacbcf45897685a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 22 Nov 2017 16:56:52 +0000 (17:56 +0100)]
HC2VPP-259: add support for mpls swap-and-forward
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>
Marek Gradzki [Wed, 22 Nov 2017 13:02:58 +0000 (14:02 +0100)]
HC2VPP-259: add support for ipv4 lookup
Change-Id: Ic6a2da08a8839bb42366b124737bb5243671815b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 21 Nov 2017 12:08:44 +0000 (13:08 +0100)]
HC2VPP-259: add support for mpls lookup
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>
Marek Gradzki [Mon, 20 Nov 2017 17:26:42 +0000 (18:26 +0100)]
HC2VPP-259: augment pop-and-lookup operation with vpp-label-lookup-attributes
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>
Marek Gradzki [Thu, 23 Nov 2017 09:27:35 +0000 (10:27 +0100)]
Do not consume ReadFailedException in RemoteMappingCustomizer
Also fixes other issues found by static analysis
(unecessary boxing, formatitng).
Change-Id: I063ccf4334ebdecf944ca1470e677c95a0fd0bdd
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 22 Nov 2017 10:32:17 +0000 (11:32 +0100)]
Add missing @Override annotations
Fix isses reported by Sonar thanks to IntelliJ's code inspection.
Change-Id: I846590213e3e8ac7d3539d4de9940b32818625d5
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 20 Nov 2017 16:40:57 +0000 (17:40 +0100)]
Use IP Translators for creating ietf-inet-types DTOs
Cleans classes that uses custom IP translation code.
Change-Id: Ia22a651d0bf0fcce143e8bf9aabcc326cfd50c2e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 20 Nov 2017 14:27:44 +0000 (15:27 +0100)]
Refactor IP translators to use IetfInetUtil
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>
Marek Gradzki [Mon, 20 Nov 2017 13:00:32 +0000 (14:00 +0100)]
Use InetAddresses.forString instead of InetAddress.getByName
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>
Marek Gradzki [Mon, 20 Nov 2017 10:19:29 +0000 (11:19 +0100)]
HC2VPP-255: postman collection with MPLS config examples
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>
Marek Gradzki [Thu, 16 Nov 2017 11:56:19 +0000 (12:56 +0100)]
HC2VPP-258: add support for MPLS label push
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>
Marek Gradzki [Thu, 16 Nov 2017 10:59:06 +0000 (11:59 +0100)]
Update ODL references in BGP documentation
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>
Marek Gradzki [Tue, 7 Nov 2017 13:00:47 +0000 (14:00 +0100)]
HONEYCOMB-385: adapt hc2vpp to Nitrogen bump
Change-Id: I0f1e2085f1687e1c8c0edcc526af048a429788e8
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Tue, 31 Oct 2017 13:26:19 +0000 (14:26 +0100)]
Update release script with proper snapshot versions
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>
Marek Gradzki [Mon, 6 Nov 2017 09:59:52 +0000 (10:59 +0100)]
Fix operational read for interface's MAC address
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>
Marek Gradzki [Thu, 26 Oct 2017 11:44:41 +0000 (13:44 +0200)]
HC2VPP-257: MPLS interface management
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>
Marek Gradzki [Wed, 25 Oct 2017 08:45:48 +0000 (10:45 +0200)]
HC2VPP-256: MPLS API
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>
Marek Gradzki [Mon, 6 Nov 2017 05:30:22 +0000 (06:30 +0100)]
Fix BGP Postman collection URL
Change-Id: I7b1c0683cf21a6f5effc1e83eab652ad584a8c7f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Jan Srnicek [Mon, 9 Oct 2017 11:01:52 +0000 (13:01 +0200)]
HONEYCOMB-359 - CollectingWriterBuilder support for wildcarded writers
requires https://gerrit.fd.io/r/#/c/8434/
Change-Id: I226192776a4285ee498d72fd000051d29ad6a974
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Marek Gradzki [Tue, 31 Oct 2017 07:50:10 +0000 (08:50 +0100)]
Adapt to mac address representation change in l2.api
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>
Marek Gradzki [Tue, 31 Oct 2017 09:13:55 +0000 (10:13 +0100)]
Post 1.17.10 release notes cleanup
Change-Id: I4f808d0685dd9096f73f528fe11af87afb6cb1e3
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 30 Oct 2017 13:27:45 +0000 (14:27 +0100)]
Documentation for jvpp-version file
Change-Id: Iba106fc52a8833b9ff34342b3ed3801ecbd22749
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Mon, 30 Oct 2017 10:01:03 +0000 (11:01 +0100)]
Update BGP guide with MBGP configuration
https://gerrit.fd.io/r/#/c/8486/ moved
BGP multiprotocol extensions configuration to seprate modules.
Change-Id: Ia316d75d4394d0ed6da459e0aa949d3a47a1a1a2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Jan Srnicek [Mon, 30 Oct 2017 09:25:29 +0000 (10:25 +0100)]
HONEYCOMB-392 - Footprint per data
Updates release notes with
- minimal params to start hc
- minimal params to start hc and be able to write something
- how many data samples are possible to be written with params above
- how much memory is taken in raw object size
- what is total observed footprint
Change-Id: Ia42dcc5075ff70a696c973651327bf62ee84bb65
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Marek Gradzki [Thu, 26 Oct 2017 09:48:50 +0000 (11:48 +0200)]
Remove unused builders for union types generated by yangtools
Builders were removed after bumping ODL dependencies to Boron:
https://gerrit.fd.io/r/#/c/3508/
Then due various issues, e.g. HC2VPP-62,
Boron bump was reverted:
https://gerrit.fd.io/r/#/c/5064/
https://gerrit.fd.io/r/#/c/5065/
HC is using Carbon now, so builders can be removed again.
Change-Id: I1a04dddc798a19842765263bde48a33447480992
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Jan Srnicek [Wed, 18 Oct 2017 07:28:19 +0000 (09:28 +0200)]
HC2VPP-247 - Mandatory reintroduced for vrf/bd sub-table
table-id(VRF) or bd-reference(BD) must be mandatory,
because if assignment of vni to vrf/bd does not exist,
and local/remote mapping tryins to reference such vni,
api call to vpp will fail with invalid value error
Change-Id: Iaeaac1fe698ccc783313063906532bcf268a99fb
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Marek Gradzki [Mon, 16 Oct 2017 05:38:22 +0000 (07:38 +0200)]
HC2VPP-246: adapt Policer Writer to policer_add_del byte order changes
Endianness of policer_add_del parameters was
changed to network order:
https://gerrit.fd.io/r/#/c/8548
JVPP flips ordering, so there is no need for additional
convertion anymore.
Change-Id: Ib7c5fafe240e0607819800c4cf4d37f4c4a8e1c6
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Jan Srnicek [Wed, 11 Oct 2017 09:38:06 +0000 (11:38 +0200)]
HC2VPP-245 - Local mapping vs Locator set ordering
LocalMapping must be writen after/deleted before Locator set,
as it has reference to it
Change-Id: I8a7299d25e0fb5c2ffb83a34f478d82b2edfa749
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Marek Gradzki [Wed, 11 Oct 2017 17:54:59 +0000 (19:54 +0200)]
Reenable nsh module
Also updates nsh-sfc jar to 18.01-SNAPSHOT
Change-Id: I25abe1f226e37f7460fedccaff7e50e2e97e97c1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Matej [Wed, 11 Oct 2017 11:07:03 +0000 (13:07 +0200)]
Temporarily disable nsh_sfc
nsh_sfc is using outdated jvpp-registry dependency which
breaks build for hc2vpp, until dependency is updated
nsh_sfc is going to be excluded from hc2vpp
Change-Id: Ib7ca2fda0c80257c7194336a55b071c70aebfe21
Signed-off-by: Matej <matej.perina@pantheon.tech>
Matej Perina [Wed, 13 Sep 2017 10:48:27 +0000 (12:48 +0200)]
Adapt notification producer to jvpp API changes (VPP-914)
Required by https://gerrit.fd.io/r/#/c/8377/
Change-Id: I91b5adda6ec8d9b011ebc1287fd2ec9811164b04
Signed-off-by: Matej Perina <mperina@cisco.com>
Jan Srnicek [Fri, 6 Oct 2017 11:36:45 +0000 (13:36 +0200)]
HC2VPP-243 - don't throw on remove of map-request-mode
Allows removing all lisp-feature-data.
Also fixes ordering for itr remote locator set.
Change-Id: Ib181c724dfa76f5ac380eec5e50f5d76f6b01389
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Marek Gradzki [Wed, 4 Oct 2017 06:58:44 +0000 (08:58 +0200)]
Bump jvpp version to 18.01-SNAPSHOT
Also sets version of vpp package dependencies to 18.01
Change-Id: I9d84915e206cc16c87479f94d4b8738899479cea
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 4 Oct 2017 06:52:06 +0000 (08:52 +0200)]
Update jira project version in hc2vpp 1.18.01 release notes
Change-Id: I424ca25cf1d61f0c135e91f16ce85bf8efe6290c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Marek Gradzki [Wed, 4 Oct 2017 06:49:08 +0000 (08:49 +0200)]
Bump hc2vpp version to 1.18.01-SNAPSHOT
Change-Id: Id2b6e7c5259190808b7093dc18538427e4034fc0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Jan Srnicek [Thu, 28 Sep 2017 11:31:17 +0000 (13:31 +0200)]
HC2VPP-232 - Secondary table lookup support
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>
Jan Srnicek [Wed, 27 Sep 2017 08:08:33 +0000 (10:08 +0200)]
HC2VPP-236 - interface-nat model file name fix
Change-Id: Iaa8d8ccb6ade28f9b62c398610638f5ba465fffd
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Jan Srnicek [Mon, 18 Sep 2017 08:21:08 +0000 (10:21 +0200)]
HC2VPP-229 - Combined honeycomb and vpp restart handling
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>