hc2vpp.git
6 years agoHC2VPP-300: Unify namespaces of FIB models 80/16780/5
Tibor Král [Sun, 13 Jan 2019 12:33:06 +0000 (13:33 +0100)]
HC2VPP-300: Unify namespaces of FIB models

Change-Id: Ib24688d039c7e38afe468af542f62c821111e41f
Signed-off-by: Tibor Král <[email protected]>
6 years agoHC2VPP-300: Unify namespaces of NAT models 79/16779/3
Tibor Král [Sun, 13 Jan 2019 12:21:28 +0000 (13:21 +0100)]
HC2VPP-300: Unify namespaces of NAT models

Change-Id: If535c40220b61b7ae3c8d4616395b1bad197e266
Signed-off-by: Tibor Král <[email protected]>
6 years agoHC2VPP-300: Unify namespaces of Routing models 78/16778/3
Tibor Král [Sun, 13 Jan 2019 12:00:31 +0000 (13:00 +0100)]
HC2VPP-300: Unify namespaces of Routing models

Change-Id: I826213be33a2378433ca659a2e149c015f3b2030
Signed-off-by: Tibor Král <[email protected]>
6 years agoHC2VPP-300: Unify namespaces of VPP_CLASSIFIER models 77/16777/2
Tibor Král [Sun, 13 Jan 2019 11:37:44 +0000 (12:37 +0100)]
HC2VPP-300: Unify namespaces of VPP_CLASSIFIER models

Change-Id: Ia77639cec348980956c215ecccd980eec09a6aa0
Signed-off-by: Tibor Král <[email protected]>
6 years agoModify gitignore to exclude any generated source files 01/15401/5
Tibor Král [Fri, 19 Oct 2018 12:28:25 +0000 (14:28 +0200)]
Modify gitignore to exclude any generated source files

Change-Id: I4edc5c2d69987c8d1284d785397ba6fc25db67a7
Signed-off-by: Tibor Král <[email protected]>
6 years agoRevert Statistics 26/16726/1
Michal Cmarada [Fri, 4 Jan 2019 07:59:46 +0000 (08:59 +0100)]
Revert Statistics

This reverts commit 91db56913c9b1fc9292637adf4d96a052a737f61.
This reverts commit cdc4d09c152e985c93016ff61789bc699b97883d.

Change-Id: I06cba1968f7379a7daa98b9e66375a5d4127b499
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoFix MacAddress API change 87/16687/1
Michal Cmarada [Fri, 4 Jan 2019 08:10:39 +0000 (09:10 +0100)]
Fix MacAddress API change

Change-Id: I516b90dac084f169d1bf1cc74909777d0824b7cb
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoadapt to string type changes in JVPP 73/16473/1
Michal Cmarada [Fri, 14 Dec 2018 08:39:12 +0000 (09:39 +0100)]
adapt to string type changes in JVPP

Change-Id: Ic3a01740290a2af37c495318f2aa5422f5fe06cd
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-395: Nullable patch 41/16441/2
Tibor Král [Wed, 12 Dec 2018 10:19:02 +0000 (11:19 +0100)]
HC2VPP-395: Nullable patch

Change-Id: I21c83ad95b1ba236a0456bd1896eebb8bf33f893
Signed-off-by: Tibor Král <[email protected]>
6 years agofix after VPP api changes for address type aliases 44/16444/1
Michal Cmarada [Wed, 12 Dec 2018 12:04:35 +0000 (13:04 +0100)]
fix after VPP api changes for address type aliases

Change-Id: I228340d362adcbec9e46c8e406337392caffaf37
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-395: Provide Interface statistics counters 58/16258/6
Tibor Král [Wed, 28 Nov 2018 17:20:00 +0000 (18:20 +0100)]
HC2VPP-395: Provide Interface statistics counters

Change-Id: If0f62b36b9d9dc6718ed62f81268ac0908f02297
Signed-off-by: Tibor Král <[email protected]>
6 years agoHC2VPP-291: ACL model bump 78/15478/9
Michal Cmarada [Mon, 19 Nov 2018 13:59:14 +0000 (14:59 +0100)]
HC2VPP-291: ACL model bump

 - bump ACL yang models
 - fix ACL module implementation and validation
 - fix ACL Unit tests
 - update postman collection

Change-Id: Iaab64e6d92d17babc3ccef7921b41070c3716516
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoBump jvpp version to 19.01-SNAPSHOT 76/15376/5
Michal Cmarada [Mon, 12 Nov 2018 12:35:06 +0000 (13:35 +0100)]
Bump jvpp version to 19.01-SNAPSHOT

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 <[email protected]>
6 years agoRelease notes: update jira and project version to 19.01 75/15375/2
Michal Cmarada [Thu, 18 Oct 2018 11:52:36 +0000 (13:52 +0200)]
Release notes: update jira and project version to 19.01

Change-Id: I6f29b4946d7f88007ac9ce673c7abb902f2dd1ea
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoBump hc2vpp version to 1.19.01-SNAPSHOT 74/15374/2
Michal Cmarada [Mon, 22 Oct 2018 07:06:54 +0000 (09:06 +0200)]
Bump hc2vpp version to 1.19.01-SNAPSHOT

Change-Id: Iedb7935735cc9836fb1cb11856d38ec1d090e6ba
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-390: Tap v2 interface implementation 23/15123/8
Tibor Král [Wed, 3 Oct 2018 15:23:08 +0000 (17:23 +0200)]
HC2VPP-390: Tap v2 interface implementation

Change-Id: I92fe8adabbb770a45ad47c56f5cd21262c4bd6e1
Signed-off-by: Tibor Král <[email protected]>
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-390: Tap v2 interface API 93/15193/2
Michal Cmarada [Tue, 9 Oct 2018 14:08:58 +0000 (16:08 +0200)]
HC2VPP-390: Tap v2 interface API

 - added support for Tap v2 in v3po yang model
 - fixed pattern for tap-name

Change-Id: Id4c02d56879ca87f370396c920fb599dd7741594
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoSwitch to NSH implementation in VPP project 11/14911/3
Michal Cmarada [Mon, 8 Oct 2018 07:47:41 +0000 (09:47 +0200)]
Switch to NSH implementation in VPP project

 - update NSH dependency in pom file
 - update NSH postman collectionUpdate postman collection

Change-Id: If7fd116dae4c074b49cfebf0b0a8bd083b0c00b9
Signed-off-by: Tibor Král <[email protected]>
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoUpdate BGP user guide and related postman collection 56/15156/2
Michal Cmarada [Fri, 5 Oct 2018 10:54:04 +0000 (12:54 +0200)]
Update BGP user guide and related postman collection

Change-Id: I0777af5b67847eff5bf29b34bd47d1dab232251b
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoFix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433) 64/14464/6
Michal Cmarada [Tue, 25 Sep 2018 09:21:09 +0000 (11:21 +0200)]
Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)

Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoFix v3po interface type 31/15031/2
Michal Cmarada [Fri, 28 Sep 2018 08:54:43 +0000 (10:54 +0200)]
Fix v3po interface type

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 <[email protected]>
6 years agoAdd INFO.yaml file 73/14473/3
Michal Cmarada [Wed, 26 Sep 2018 07:08:17 +0000 (09:08 +0200)]
Add INFO.yaml file

Add INFO.yaml to list:
- Project description
- Properties
- Issue Tracking
- Contacts
- PTL information
- Meeting information
- Committer information

Change-Id: I13f86307ccc1692d0dbe373996f664c7c823ae49
Signed-off-by: Vanessa Rene Valderrama <[email protected]>
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoFix nsh-sfc dependency 29/14629/1
Michal Cmarada [Mon, 3 Sep 2018 14:43:44 +0000 (16:43 +0200)]
Fix nsh-sfc dependency

nsh-sfc is beeing moved to vpp. First patch is already in
https://gerrit.fd.io/r/#/c/14489/. JVPP API is still missing
and nsh-sfc does not provide 18.07 or 18.10 Snapshot versions.
Therefore switching to 18.07 release version until JVPP API is
finished in VPP.

Change-Id: Ia74975023b7be092434d230a8ca909531231fd95
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-379: move NAT validation code out of customizers 30/14430/2
Marek Gradzki [Thu, 23 Aug 2018 08:33:47 +0000 (10:33 +0200)]
HC2VPP-379: move NAT validation code out of customizers

Use Validator interface introduced by HONEYCOMB-431:
https://gerrit.fd.io/r/#/c/14022/

Change-Id: I9e4c8d59f299ed7da4a93bbdc70c81f2bea93606
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: various readme fixes 15/14415/4
Marek Gradzki [Wed, 22 Aug 2018 11:41:15 +0000 (13:41 +0200)]
examples/ncclient: various readme fixes

- fix link to honeycomb <validate> implementation
- fix paths in the examples

Change-Id: Ifa72c4f7dbff67fe090ddbc3a67bd94f587b65a3
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: update copyright information 13/14413/1
Marek Gradzki [Wed, 22 Aug 2018 10:22:10 +0000 (12:22 +0200)]
examples/ncclient: update copyright information

This patch:

- removes copyright information from config XML files

  The change is required due to ncclient bug.
  If <config> embeded in <copy-config> request contains
  '://', then it is treated as URL and included in <url> node
  before sending to NETCONF server.

- updates licence to Apache 2.0 in other XML files.

Change-Id: I526de3c1beee6ff4cb255481fc01608beea159ff
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: make validate and commit optional 10/14410/1
Marek Gradzki [Wed, 22 Aug 2018 07:52:43 +0000 (09:52 +0200)]
examples/ncclient: make validate and commit optional

Change-Id: I9da8729b58500d18c82981284c44ad07bcbee167
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: set default log level to INFO 09/14409/1
Marek Gradzki [Wed, 22 Aug 2018 07:41:18 +0000 (09:41 +0200)]
examples/ncclient: set default log level to INFO

Change-Id: I959045c8d7ec16291f7144c572faea06cf1ad433
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: update Readme.adoc after bump to Oxygen SR3 08/14408/2
Marek Gradzki [Wed, 22 Aug 2018 06:51:26 +0000 (08:51 +0200)]
examples/ncclient: update Readme.adoc after bump to Oxygen SR3

Patches, that fixes issues with ncclient compatibility,
are inclded in Oxygen SR3, so ncclient section can be removed.

Detailed information about NETCONF improvements
in future ODL versions was added.

Change-Id: I33c5013f106fcf5cff3216a723e7670b360d404f
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples: add ncclient examples of URL capability 06/14406/1
Marek Gradzki [Wed, 22 Aug 2018 04:59:36 +0000 (06:59 +0200)]
examples: add ncclient examples of URL capability

Change-Id: Icf3bfc331548d1e0f1862bf87615f7c03a24780a
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: <copy-config> example of bridge domain configuration 05/14405/1
Marek Gradzki [Tue, 21 Aug 2018 13:57:27 +0000 (15:57 +0200)]
examples/ncclient: <copy-config> example of bridge domain configuration

Change-Id: I66bf46a953ff40a6937fa77bfe58fa3ee179ed24
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: update readme with <validate> example 96/14396/2
Marek Gradzki [Tue, 21 Aug 2018 13:19:11 +0000 (15:19 +0200)]
examples/ncclient: update readme with <validate> example

Change-Id: Id5aa173292d00aee0dd37d0853d46cb98e2cce05
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples: convert ncclient Readme to adoc 93/14393/2
Marek Gradzki [Tue, 21 Aug 2018 12:27:35 +0000 (14:27 +0200)]
examples: convert ncclient Readme to adoc

Change-Id: Ida137d00b51a480e4f27950cc9bbc609f4782efd
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples: add verbose option to ncclient scripts 84/14384/1
Marek Gradzki [Tue, 21 Aug 2018 08:31:47 +0000 (10:31 +0200)]
examples: add verbose option to ncclient scripts

Change-Id: I42f1efed55072ec9885dda2a9dcd3c8d85980d8f
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoAdapt ncclient examples to 18.07 ietf-nat model changes 79/14379/1
Marek Gradzki [Tue, 21 Aug 2018 07:40:37 +0000 (09:40 +0200)]
Adapt ncclient examples to 18.07 ietf-nat model changes

The ietf-nat model was updated by HC2VPP-226 and HC2VPP-367.

Change-Id: I1bf8bfdbc0a106c933a565b5f11032e802598fbb
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-343: enable validation for acl list 90/14090/2
Marek Gradzki [Thu, 14 Jun 2018 10:12:07 +0000 (12:12 +0200)]
HC2VPP-343: enable validation for acl list

This patch moves all validation for acl list to VppAclValidator,
implementation of Validator interface brought by (HONEYCOMB-431):
https://gerrit.fd.io/r/#/c/14022/

To test <validate> RPC, run ncclient tests with:
./edit_config.py acl/copy_config_unsupported-acl-type.xml -v

Support for <validate> RPC requres:
https://gerrit.fd.io/r/#/c/14040/

Change-Id: Iea591a76022e893f6aaf2a52637f45cadb284e4e
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-375: align classify session's match with skip-n-vectors zeros 80/14180/3
Marek Gradzki [Mon, 13 Aug 2018 15:18:23 +0000 (17:18 +0200)]
HC2VPP-375: align classify session's match with skip-n-vectors zeros

If bigger values of skip-n-vectors are used (e.g. policer usecase),
also key is very long, making the API hard to use.

To make it easier, match value will be now aligned with zeros if needed.

Read part does not need to be updated, beacause classify_session_dump
returns match without skip-n-vectors part.

Change-Id: Iab54480e7a3851690aed30c8f5b8b0e6769c054f
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoCheck length of classify session's match vector (HC2VPP-373) 68/14168/1
Marek Gradzki [Mon, 13 Aug 2018 09:56:17 +0000 (11:56 +0200)]
Check length of classify session's match vector (HC2VPP-373)

Change-Id: I45028349f81a756d03d46e02af40041a7cae1fec
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoExplicitly fail when classify table for given session is missing 67/14167/1
Marek Gradzki [Mon, 13 Aug 2018 10:17:29 +0000 (12:17 +0200)]
Explicitly fail when classify table for given session is missing

Change-Id: Ied737af2eb650f54fbaa5413eb0a586793d34e43
Signed-off-by: Marek Gradzki <[email protected]>
6 years agolisp: remove unnecessary Integer boxing in RemoteMappingCustomizer 60/14160/1
Marek Gradzki [Mon, 13 Aug 2018 05:19:14 +0000 (07:19 +0200)]
lisp: remove unnecessary Integer boxing in RemoteMappingCustomizer

Fixes issue reported by Sonar

Change-Id: If7448ea2618cbcbad56c7dcf4c87ec6f1cc1cb39
Signed-off-by: Marek Gradzki <[email protected]>
6 years agojvpp-benchmark: ignore unclosed resources reported by Sonar 58/14158/1
Marek Gradzki [Mon, 13 Aug 2018 05:12:38 +0000 (07:12 +0200)]
jvpp-benchmark: ignore unclosed resources reported by Sonar

Sonar reports unclosed resources,
but jvpp connections are closed in JVppBenchmark.tearDown.

It is only a benchmark,
so if JMH would crash and not call tearDown,
then we don't really care.

Change-Id: I60ae60c78610b8c07076c7d2a94917e8316d03dd
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoSet mask/match length when using VPP's classfier 22/14122/1
Marek Gradzki [Fri, 10 Aug 2018 04:56:36 +0000 (06:56 +0200)]
Set mask/match length when using VPP's classfier

Adapts hc2vpp to recent VPP api change:
https://gerrit.fd.io/r/#/c/13007/

Setting length field is currently mandatory
for variable length arrays (VPP-199).

Change-Id: I7ce66076d8a29d1ff5dfe5592e651d133e4072aa
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoFix prefixes in unicast-routing models 64/14064/1
Michal Cmarada [Wed, 8 Aug 2018 10:14:52 +0000 (12:14 +0200)]
Fix prefixes in unicast-routing models

It is not valid to use different prefix for imports and augmentations.
This fixes this issue and allows to use 2.0.6.1 yangtools version.

Change-Id: Ie39228fc60a31028fbf74b964011539b7056d9f6
Signed-off-by: Michal Cmarada <[email protected]>
6 years agoHC2VPP-341: remove v1.0/v2.0 postman collections 58/13758/2
Marek Gradzki [Fri, 27 Jul 2018 07:06:15 +0000 (09:06 +0200)]
HC2VPP-341: remove v1.0/v2.0 postman collections

Hc2vpp examples are using now v2.1 format.

Change-Id: I945c03f8b80a4a74cf7064c566205ae5dc334d89
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoAdd script for bumping hc2vpp version 55/13755/1
Marek Gradzki [Fri, 27 Jul 2018 06:31:04 +0000 (08:31 +0200)]
Add script for bumping hc2vpp version

The script simply replaces version string
in all files from GIT index.

TODO(HC2VPP-369): does not cover updating package
versions and release notes.

Change-Id: Iff4d84ced69873bd8d7e7d58714750d8f2b355e6
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoBump jvpp version to 18.10-SNAPSHOT 86/13586/1
Marek Gradzki [Fri, 20 Jul 2018 11:47:32 +0000 (13:47 +0200)]
Bump jvpp version to 18.10-SNAPSHOT

Also sets version of VPP package dependencies to 18.07.

Change-Id: I4be0a5a9217c3e059125e7eb5a36170d02f12b88
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoRelease notes: update jira and project version to 18.10 85/13585/1
Marek Gradzki [Fri, 20 Jul 2018 11:30:39 +0000 (13:30 +0200)]
Release notes: update jira and project version to 18.10

Change-Id: I9180a1bd4f60846568381caf8f99548cbad3a0fc
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoBump hc2vpp version to 1.18.10-SNAPSHOT 83/13583/1
Marek Gradzki [Fri, 20 Jul 2018 11:07:58 +0000 (13:07 +0200)]
Bump hc2vpp version to 1.18.10-SNAPSHOT

Change-Id: I6ba9d0017cc42a4cafe3790e563e206d33c211b3
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoFix binding name for route 12/13512/2
Michal Cmarada [Mon, 9 Jul 2018 11:59:31 +0000 (13:59 +0200)]
Fix binding name for route

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 <[email protected]>
6 years agoHC2VPP-176: add support for api-segment prefix 76/13476/2
Marek Gradzki [Mon, 16 Jul 2018 07:05:42 +0000 (09:05 +0200)]
HC2VPP-176: add support for api-segment prefix

VPP can be run with custom SHM segment prefix:

sudo vpp unix {cli-listen /run/vpp/cli-vpp1.sock} api-segment { prefix vpp1 }
sudo vppctl -s /run/vpp/cli-vpp1.sock

this patch adds optional api-segment-prefix parameter to
/opt/honeycomb/config/jvpp.json file.

Example configuration:

{
  "jvpp-connection-name": "honeycomb",
  "api-segment-prefix": "vpp1",
  "jvpp-request-timeout": 5
}

Change-Id: I7ca298644891602afe7898db88bb90d59b49ce4d
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoRemove workaround for YANGTOOLS-678 from ietf-ipv6-unicast-routing model 06/13506/1
Marek Gradzki [Tue, 17 Jul 2018 10:28:58 +0000 (12:28 +0200)]
Remove workaround for YANGTOOLS-678 from ietf-ipv6-unicast-routing model

YANGTOOLS-678 was fixed in Oxygen SR2 used in HC since 18.07.

Change-Id: I7a68e8f7178a7448216825ae64d968552686bba3
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoRemove workarounds from ietf-routing-types related to MDSAL-269 99/13499/2
Marek Gradzki [Tue, 17 Jul 2018 06:57:41 +0000 (08:57 +0200)]
Remove workarounds from ietf-routing-types related to MDSAL-269

Change-Id: Iadd17a3a44a20711e58c272934fb15dfe89bf2be
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoRemove workarounds from ietf-routing-types related to MDSAL-309 97/13497/2
Marek Gradzki [Tue, 17 Jul 2018 05:28:23 +0000 (07:28 +0200)]
Remove workarounds from ietf-routing-types related to MDSAL-309

MDSAL-309 was fixed in Oxygen SR1 used in HC since 18.07.

Change-Id: I65f4574a10afa7ee1875446d7bfcb04aeca8674b
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoRemove workarounds from routing and mpls models related to YANGTOOLS-841 96/13496/2
Marek Gradzki [Tue, 17 Jul 2018 05:06:27 +0000 (07:06 +0200)]
Remove workarounds from routing and mpls models related to YANGTOOLS-841

YANGTOOLS-841 was fixed in Oxygen SR1 used by HC since 18.07.

Change-Id: Ifa2627e284574a0bab84763dc2b6252a4b6be4a3
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-79: use AddressTranslator for ip-address-no-zone translation 34/13334/2
Marek Gradzki [Tue, 3 Jul 2018 12:09:36 +0000 (14:09 +0200)]
HC2VPP-79: use AddressTranslator for ip-address-no-zone translation

Change-Id: I46955630709e3d837f95f488cb2fe089952865c4
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-275: use ip-address-no-zone in v3po YANG model 33/13333/2
Marek Gradzki [Tue, 3 Jul 2018 10:44:55 +0000 (12:44 +0200)]
HC2VPP-275: use ip-address-no-zone in v3po YANG model

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 <[email protected]>
6 years agoHC2VPP-367: update ietf-nat model from 2018-02-23 to 2018-06-28 44/13344/1
Marek Gradzki [Wed, 4 Jul 2018 08:14:34 +0000 (10:14 +0200)]
HC2VPP-367: update ietf-nat model from 2018-02-23 to 2018-06-28

The 2018-06-28 revision:

- removes mandatory statement for limit-per-subscriber
  (previously commented out due to HC2VPP-328),

- removes logging-enable leaf that was not supported by hc2vpp

Change-Id: I36c2b05029331db03e37c016a31b32d6abf4ac06
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-79: provide AddressTranslator.ipAddressToArray for IpAddressNoZone 32/13332/1
Marek Gradzki [Tue, 3 Jul 2018 11:34:17 +0000 (13:34 +0200)]
HC2VPP-79: provide AddressTranslator.ipAddressToArray for IpAddressNoZone

Change-Id: I637842ea6a582676ab305c29b5d8464987537be0
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-79: use ip-address-no-zone for proxy-arp configuration 30/13330/1
Marek Gradzki [Tue, 3 Jul 2018 10:30:35 +0000 (12:30 +0200)]
HC2VPP-79: use ip-address-no-zone for proxy-arp configuration

The inet:ipv4-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: Ibb57c9b725a038784808e61c1e709663b9c9b9e6
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoBump v3po model versions from 2017-06-07 to 2018-07-03 28/13328/1
Marek Gradzki [Tue, 3 Jul 2018 07:56:58 +0000 (09:56 +0200)]
Bump v3po model versions from 2017-06-07 to 2018-07-03

Change-Id: I7ed600c929b130edf84c09d136e95e32cab4be9e
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-346: use fib-table-list-ref for FIB to ifc assignment 27/13327/1
Marek Gradzki [Tue, 3 Jul 2018 07:56:58 +0000 (09:56 +0200)]
HC2VPP-346: use fib-table-list-ref for FIB to ifc assignment

Change-Id: Ie57776ab9784b7c57630b7ea9ce9b96b71feb5a5
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoFix VXLAN state read 17/13317/1
Marek Gradzki [Mon, 2 Jul 2018 12:29:50 +0000 (14:29 +0200)]
Fix VXLAN state read

Use UnsignedInts.toLong instead of (long) cast.

Change-Id: I1b6875860019f3449bc32f16cd959f3084583d20
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-346: use fib-table-list-ref for VXLAN configuration 16/13316/1
Marek Gradzki [Mon, 2 Jul 2018 11:09:26 +0000 (13:09 +0200)]
HC2VPP-346: use fib-table-list-ref for VXLAN configuration

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 <[email protected]>
6 years agoHC2VPP-348: use vpp-fib-management module instead of FIB table index 99/13299/4
Marek Gradzki [Fri, 29 Jun 2018 12:36:59 +0000 (14:36 +0200)]
HC2VPP-348: use vpp-fib-management module instead of FIB table index

Change-Id: Iba1f6d4c556c8ef839eb309b990f32945e6494fb
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoHC2VPP-349: use fib-table-list-ref in the proxy-arp model 13/13313/2
Marek Gradzki [Mon, 2 Jul 2018 06:36:39 +0000 (08:36 +0200)]
HC2VPP-349: use fib-table-list-ref in the proxy-arp model

User is now required to explicitly configure FIB tables
using vpp-fib-management module.

The patch also adds non-default vrf configuration example
to the proxy-arp postman collection.

Change-Id: I8cbdf0add8992bfb0a6a8fe0a38d6a466d5951f0
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoAdd initializer for FIB tables 11/13311/3
Marek Gradzki [Mon, 2 Jul 2018 05:09:14 +0000 (07:09 +0200)]
Add initializer for FIB tables

Default FIB tables (ID=0) are created in VPP during startup
for both ipv4 and ipv6.
In order to prevent oper and cfg mismatch,
HC needs to update its cfg during startup.

This patch adds initializer for FIB tables which handles that task.

Change-Id: Iadae8d545985a07fdb32000d3ca498cf3f9b40ed
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoMove Proxy Arp RESTCONF examples to separate POSTMAN collection 14/13314/1
Marek Gradzki [Mon, 2 Jul 2018 07:10:11 +0000 (09:10 +0200)]
Move Proxy Arp RESTCONF examples to separate POSTMAN collection

Proxy Arp implementation is part of l3 plugin, so move
configuration examples there as well.

Change-Id: If3eb22dd295901529035e1ea231e9133d6e86bc7
Signed-off-by: Marek Gradzki <[email protected]>
6 years agojvpp-benchmark: improve exception handling 90/13290/1
Marek Gradzki [Fri, 29 Jun 2018 05:35:35 +0000 (07:35 +0200)]
jvpp-benchmark: improve exception handling

Fixes several issues found by Sonar.

Change-Id: I7ab017f9d89221e8eff4b2438b7669df608b5587
Signed-off-by: Marek Gradzki <[email protected]>
6 years agofix Cast one of the operands to a long bug 67/13267/1
Michal Cmarada [Thu, 28 Jun 2018 07:39:52 +0000 (09:39 +0200)]
fix Cast one of the operands to a long bug

both of operands are int type which
can cause loss of data. This changes the types
of operands to long

Change-Id: Ie162d52b1f853c0d83d51c8871af42a597b93386
Signed-off-by: Michal Cmarada <[email protected]>
6 years agosrv6: simplify if condition in SidCustomizer.extractLocPrefix 48/13248/2
Marek Gradzki [Wed, 27 Jun 2018 15:10:08 +0000 (17:10 +0200)]
srv6: simplify if condition in SidCustomizer.extractLocPrefix

Do not check loc.getPrefix() == null twice.

Change-Id: I04a9dae25e14761d7f287aedd636dda8169f2dc9
Signed-off-by: Marek Gradzki <[email protected]>
6 years agosrv6: do not check if SidCustomizer.bindRequest() returns null 47/13247/2
Marek Gradzki [Wed, 27 Jun 2018 14:59:59 +0000 (16:59 +0200)]
srv6: do not check if SidCustomizer.bindRequest() returns null

Such comparison is allways false.

Change-Id: I39d4caac4146d48c04ecf28b3c9ecf7ae0127949
Signed-off-by: Marek Gradzki <[email protected]>
6 years agobgp: mark parameters of hc2vpp RouteWriters as @NonNull 57/13257/1
Marek Gradzki [Wed, 27 Jun 2018 19:13:29 +0000 (21:13 +0200)]
bgp: mark parameters of hc2vpp RouteWriters as @NonNull

Requires https://gerrit.fd.io/r/#/c/13254/

Change-Id: Icacf161f1c47f9471f19b0d89e5f2396942537ec
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoBD: remove redundant null check in BridgeDomainCustomizer 50/13250/1
Marek Gradzki [Wed, 27 Jun 2018 15:26:37 +0000 (17:26 +0200)]
BD: remove redundant null check in BridgeDomainCustomizer

Details objects cannot be null.

Change-Id: I2a1c0991ec2ccfee4c6d35c77321c6cb67f4bb7f
Signed-off-by: Marek Gradzki <[email protected]>
6 years agolisp: fix sonar issues in SubtableDumpParams 49/13249/1
Marek Gradzki [Wed, 27 Jun 2018 15:20:16 +0000 (17:20 +0200)]
lisp: fix sonar issues in SubtableDumpParams

Change-Id: Ic53723df24e8c373fab3f2a63d21de39c1fac156
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: fix repo link 42/13242/1
Marek Gradzki [Wed, 27 Jun 2018 12:29:26 +0000 (14:29 +0200)]
examples/ncclient: fix repo link

Change-Id: If9b2f1d8fd22b7e9df3069dd65e7db2900027a92
Signed-off-by: Marek Gradzki <[email protected]>
6 years agoexamples/ncclient: use ncclient repo instead of fork 40/13240/1
Marek Gradzki [Wed, 27 Jun 2018 12:24:22 +0000 (14:24 +0200)]
examples/ncclient: use ncclient repo instead of fork

There is no need for using fork after
support for <config> was merged:
https://github.com/ncclient/ncclient/pull/232

Change-Id: I0bd4a1ce6c4263228771ae3a74e298640a0c2a40
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-317: remove FibTableService 39/13139/4
Michal Cmarada [Wed, 20 Jun 2018 07:57:15 +0000 (09:57 +0200)]
HC2VPP-317: remove FibTableService

After implementing FIB table management in SRv6 and routing
FibTableService is no longer necessary and can be removed.

Change-Id: I797ac52d5ed8ee1c6bf901895080aa06e5ac9016
Signed-off-by: Michal Cmarada <[email protected]>
7 years agohide Srv6Util constructor in SRv6 module 73/13173/3
Michal Cmarada [Thu, 21 Jun 2018 09:23:52 +0000 (11:23 +0200)]
hide Srv6Util constructor in SRv6 module

Hide default constructor to prevent creating
instance of Srv6Util class.

Change-Id: I805ce1971883426d8df3d9ce6eac2e5bd6ce201a
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoHC2VPP-344: Add FIB table management for routing 93/13093/6
Michal Cmarada [Fri, 22 Jun 2018 09:02:27 +0000 (11:02 +0200)]
HC2VPP-344: Add FIB table management for routing

- update models with FIB table management
- fixes implementation for FIB table management

Change-Id: I5cf397d6e827cb14df970e14ee268ef870931bd4
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoHC2VPP-88: translation layer for af_packet interface management 69/13169/5
Marek Gradzki [Wed, 20 Jun 2018 14:37:06 +0000 (16:37 +0200)]
HC2VPP-88: translation layer for af_packet interface management

Includes postman collection with RESTCONF examples.

Change-Id: If6f7ba1e2e7ab37433ebc5215e4731f1193c62a2
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-88: yang model for af_packet interface management 26/9926/4
Marek Gradzki [Tue, 2 Jan 2018 14:38:44 +0000 (15:38 +0100)]
HC2VPP-88: yang model for af_packet interface management

Change-Id: Iaa21ad832d03f36d7d8a6f63a68a6a7ece7c9b8d
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoFix NPE in InterfaceDataTranslator.isInterfaceOfType 67/13167/2
Marek Gradzki [Thu, 21 Jun 2018 06:39:59 +0000 (08:39 +0200)]
Fix NPE in InterfaceDataTranslator.isInterfaceOfType

SwInterfaceDetails returned by dump manager are nullable.
In that case isInterfaceOfType should return false.

Change-Id: Iaf3d1f6c6923ed6863357fe2470716f135b6164f
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoAdd SRv6 5 node docker demo 63/12563/9
Michal Cmarada [Fri, 15 Jun 2018 08:37:14 +0000 (10:37 +0200)]
Add SRv6 5 node docker demo

This demo is intended to test SRv6 implementation. There are
two options how to run the demo. First one is to use VPP only
configuration and the second one uses honeycomb to configure
SRv6 on nodes.

For detailed information about the demo read documentation in
./asciidoc/Readme.adoc file. Follow the instructions to run
the demo and use provided commands to verify the operation
of VPP nodes.

Change-Id: I7d17db0096cc48b06e9148e7c78faaf9d7b8a97d
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoHC2VPP-304 - add SRv6 policy module 80/11680/17
Michal Cmarada [Fri, 15 Jun 2018 11:12:53 +0000 (13:12 +0200)]
HC2VPP-304 - add SRv6 policy module

new models:
[email protected]
  (ietf draft for srte-policies)
[email protected]
  (augments oc-srte-policy model with VPP specific configuration)
[email protected]
  defines policy contexts for policies and candidate paths

new features:
- adds support for writing/reading SRv6 policies
- adds support for writing/reading L2 steering
- adds support for writing/reading L3 steering
- implements support for FIB table management (HC2VPP-345)

Change-Id: Ie83ac8ecdcc0e46086e1ecdaecbb811746151c2f
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoHC2VPP-288 - add readers for SRv6 module 30/12830/10
Michal Cmarada [Fri, 15 Jun 2018 11:10:53 +0000 (13:10 +0200)]
HC2VPP-288 - add readers for SRv6 module

Changes:
- add locator context to map locator name to locator IPv6Prefix
- add readers for SRv6 module
- implements reading of local sids and their end functions.
- implements support for FIB table management (HC2VPP-345)

Change-Id: Ib04402539a0b6666c5a1d0b4e1b5b5e08ccbf67b
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoHC2VPP-288 - add SRv6 module (writers only) 25/10825/37
Michal Cmarada [Fri, 15 Jun 2018 11:09:56 +0000 (13:09 +0200)]
HC2VPP-288 - add SRv6 module (writers only)

Changes:
- add new module for SRv6
- add models for SRv6 configuration:
  from https://datatracker.ietf.org/doc/draft-raza-spring-srv6-yang/
   - [email protected]
   - [email protected]
   - [email protected]
- implements Configuration of local sids and their end functions.
- implements support for FIB table management (HC2VPP-345)

Models hc2vpp-ietf-srv6-base and hc2vpp-ietf-srv6-static
are changed (HC2VPP-332):
 - imports for routing models (HC2VPP-298)
 - presence in end function containers was added to fix
   mandatory child verification if parent container is not present

Change-Id: Ib74e48023b671383f076b84773e26ce7c5ae282a
Signed-off-by: Michal Cmarada <[email protected]>
Signed-off-by: Jan Srnicek <[email protected]>
7 years agoHC2VPP-317: Update FIB management module 67/13067/3
Michal Cmarada [Fri, 15 Jun 2018 09:04:29 +0000 (11:04 +0200)]
HC2VPP-317: Update FIB management module

- added type definitions for referencing FIB tables
  from different data modules

Change-Id: I92a25107db6937dc94b4e719f2da2b8c77ebdac4
Signed-off-by: Michal Cmarada <[email protected]>
7 years agoAdd configuration for mtu in docker examples 78/13078/2
Michal Cmarada [Fri, 15 Jun 2018 11:38:44 +0000 (13:38 +0200)]
Add configuration for mtu in docker examples

VPP is using mtu=9000 for interfaces that it creates.

This fixes the mtu value for veth interfaces on linux side
so they match the value configured in VPP for all veth interfaces
in docker examples. Originally veth interfaces use smaller value
since Linux automatically sets their MTU to be the smallest MTU
of their slave ports. For VPP this means if a bigger frame is sent
outside to the veth interface it will be dropped.

Change-Id: I41117490ec80a0b2d2d2897493c2690f92766734
Signed-off-by: Michal Cmarada <[email protected]>
7 years agol3: remove redundant stubbing for WriteContext.readBefore 47/13047/2
Marek Gradzki [Thu, 14 Jun 2018 10:12:42 +0000 (12:12 +0200)]
l3: remove redundant stubbing for WriteContext.readBefore

Change-Id: I8c4cc2564ad0f4c6452984234d4c9466677db052
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoapi-coverage: include JVppGtpu and JVppPppoe 20/13020/1
Marek Gradzki [Wed, 13 Jun 2018 08:35:50 +0000 (10:35 +0200)]
api-coverage: include JVppGtpu and JVppPppoe

Change-Id: I44151a33aba3fb9ad877f9d4eb6c424673a4632a
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-354: use hw_interface_set_mtu for Ethernet interfaces 91/12991/1
Marek Gradzki [Mon, 11 Jun 2018 14:45:47 +0000 (16:45 +0200)]
HC2VPP-354: use hw_interface_set_mtu for Ethernet interfaces

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 <[email protected]>
7 years agoHC2VPP-317 - Implement FIB table management support 69/12669/12
Michal Cmarada [Fri, 8 Jun 2018 09:54:53 +0000 (11:54 +0200)]
HC2VPP-317 - Implement FIB table management support

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 <[email protected]>
7 years agoHONEYCOMB-432: adapt hc2vpp to ODL Oxygen SR1 bump 49/12249/3
Marek Gradzki [Fri, 27 Apr 2018 10:48:43 +0000 (12:48 +0200)]
HONEYCOMB-432: adapt hc2vpp to ODL Oxygen SR1 bump

Requires https://gerrit.fd.io/r/#/c/12239/

Change-Id: Ideb4c0503b31b33aefa35a7840ee0d73d2912509
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-336: reenable NSH plugin 46/12846/3
Marek Gradzki [Fri, 1 Jun 2018 10:48:27 +0000 (12:48 +0200)]
HC2VPP-336: reenable NSH plugin

This patch reverts https://gerrit.fd.io/r/#/c/12822/
and bumps jvpp nsh_sfc dependency to 18.07-SNAPSHOT.

Change-Id: Idce70d39c9c273b7db3c771430ef5af58417b43b
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-342: fix when condition in l2-fib-entry definition 50/12850/1
Marek Gradzki [Fri, 1 Jun 2018 11:03:41 +0000 (13:03 +0200)]
HC2VPP-342: fix when condition in l2-fib-entry definition

ODL Yangtools does not enforce when statements,
so model revision was not changed.

Change-Id: If46fd3bfa7932a056e0a8064837d4c42de5cfdb5
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-339: convert postman collections to v2.1.0 format 37/12837/2
Marek Gradzki [Fri, 1 Jun 2018 05:28:47 +0000 (07:28 +0200)]
HC2VPP-339: convert postman collections to v2.1.0 format

Mantaining postman collections in v1 format is difficult
due to UID strings.

Postman collection v2 fixes the issue and many others, see
http://blog.getpostman.com/2015/06/05/travelogue-of-postman-collection-format-v2/

Collections in v1 format, were converted
using postman-collection-transformer.
Output was transformed using JSON.stringify with space='\t',
to be compliant with Postman application which does not support
spaces for indentation.

Coverted collections were tested using Postman v6.1.3.

Previous version of postman collections were renamed
to *_v1.0.0.json or *_v2.0.0.json.
Removal is planned in 18.10 (HC2VPP-338).

Change-Id: I6caf496293fccc1f9aadcdece668b5200fe07122
Signed-off-by: Marek Gradzki <[email protected]>
7 years agonat: postman collection cleanup 28/12828/2
Marek Gradzki [Thu, 31 May 2018 09:29:13 +0000 (11:29 +0200)]
nat: postman collection cleanup

Change-Id: I25a7742289753bd0bb2ef49d4a1e609cf8570a9d
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoConvert NAT postman collection to v2.1.0 27/12827/3
Marek Gradzki [Thu, 31 May 2018 09:14:07 +0000 (11:14 +0200)]
Convert NAT postman collection to v2.1.0

Old collection was renamed to
nat_postman_collection_v1.0.0.json

Change-Id: I34994f4e3bfaa8e6937b318d2a4c059a1523dbfc
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoHC2VPP-325: use ip-prefix instead of ip-address in [email protected] 10/12810/2
Marek Gradzki [Wed, 30 May 2018 11:45:41 +0000 (13:45 +0200)]
HC2VPP-325: use ip-prefix instead of ip-address in [email protected]

Only /32 prefix for IPv4 and /128 for IPv6 are supported.

Change-Id: I875b1eb6c2cb43da54de0a731aeeb9757b39c39c
Signed-off-by: Marek Gradzki <[email protected]>
7 years agoUpdate AddressTranslator 25/12825/1
Michal Cmarada [Thu, 31 May 2018 07:34:43 +0000 (09:34 +0200)]
Update AddressTranslator

- added handling of IpPrefixe
- added UnitTests for the whole class

Change-Id: I9fbdcce1ca8734b7415c55559ef65e553e737e44
Signed-off-by: Michal Cmarada <[email protected]>