hc2vpp.git
6 years agoBD: remove redundant null check in BridgeDomainCustomizer 64/13264/2 stable/1804
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 <mgradzki@cisco.com>
(cherry picked from commit fdc7c0fec54aa81ec251889deb5756bf0bc9e906)

6 years agolisp: fix sonar issues in SubtableDumpParams 63/13263/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 <mgradzki@cisco.com>
(cherry picked from commit 801ed98e2f6b6c3f82876e726aa120482210c427)

6 years agoexamples/ncclient: fix repo link 43/13243/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 <mgradzki@cisco.com>
(cherry picked from commit 0c9b1fe07a08c4bc6e12599f4a19369ebbb950fa)

6 years agoexamples/ncclient: use ncclient repo instead of fork 41/13241/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 <mgradzki@cisco.com>
(cherry picked from commit a6ad368785d2584bd6b505c3f39461f9517212c8)

6 years agoAdd configuration for mtu in docker examples 79/13079/1
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 <michal.cmarada@pantheon.tech>
(cherry picked from commit c6e27c7f0e1f1bc791878f3d0ca277500aad5fe6)

6 years agoHC2VPP-342: fix when condition in l2-fib-entry definition 51/12851/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 <mgradzki@cisco.com>
6 years agojvpp-benchmark: add option to select interface mode 40/12740/2
Marek Gradzki [Fri, 25 May 2018 06:21:20 +0000 (08:21 +0200)]
jvpp-benchmark: add option to select interface mode

Changes:
- use loopback interface instead of local0,
- if L3 (default) mode is selected, assing IP to the loop0 interface,
- if L2 mode is selected, create bridge domain and assing loop0 the BD.

To test interface in L2 mode, use:

sudo java -jar ./target/jvpp-benchmark-exec.jar -p mode=L2

Change-Id: I8450d42fe0d164c6dbedf1dacf1444a25d9932b8
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agojvpp-benchmark: add script for running various test cases 14/12714/1
Marek Gradzki [Thu, 24 May 2018 10:47:27 +0000 (12:47 +0200)]
jvpp-benchmark: add script for running various test cases

Change-Id: I689adb9e139ff22a48cf82e27e8501d542edef72
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agojvpp-benchmark: fix IP generation 11/12711/1
Marek Gradzki [Thu, 24 May 2018 08:49:51 +0000 (10:49 +0200)]
jvpp-benchmark: fix IP generation

Change-Id: I5ab4465f25c13e0f3b89e2757bde9dd47c660732
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoJVpp JMH benchmark 82/12682/5
Marek Gradzki [Mon, 21 May 2018 12:43:45 +0000 (14:43 +0200)]
JVpp JMH benchmark

Creates ACL of size aclSize using acl_add_replace,
then assigns it to local0 using acl_interface_set_acl_list.

Then ACL is updated synchronously using acl_add_replace.
By default 20x2s warmup and 100x2s measurment iterations
are performed.

VPP is restarted after each iteration.

Each invocation of acl_add_replace uses ACL from precomputed
set of ACLs of size aclSetSize.
ACLs from the set are used in round-robin fashion.

Compile:

cd $HC2VPP_ROOT/it/jvpp-benchmark
mvn clean install

Run with:

sudo java -jar ./target/jvpp-benchmark-exec.jar

To specify aclSize (default=100), use:

sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSize=1000

To specify aclSetSize (default=100), use:

sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSetSize=1000

To see more options, use

java -jar ./target/jvpp-benchmark-exec.jar -h

Change-Id: I43691ba891940a1c341f8e9893c8598c811bc077
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agodocker: fix path in copy_packages.sh 96/12596/1
Marek Gradzki [Wed, 16 May 2018 12:04:35 +0000 (14:04 +0200)]
docker: fix path in copy_packages.sh

Change-Id: I737000a63c81d6812a8fb6aa6d4d8d6b87ffdc7d
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit 03f6001049d60c59c81408c472996cba4e703a75)

6 years agoNAT: fix port read 35/12535/1
Marek Gradzki [Fri, 11 May 2018 07:07:04 +0000 (09:07 +0200)]
NAT: fix port read

Change-Id: I2aceb52f9c3bace7107f203ed717fe7d1c649328
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit 6e6b56482dddb1575820b62ae4a39b6006293e9a)

7 years agoHC2VPP-314 - fix for IPV6 routes with 128 subnet prefix 71/12371/1
Michal Cmarada [Thu, 3 May 2018 07:42:34 +0000 (09:42 +0200)]
HC2VPP-314 - fix for IPV6 routes with 128 subnet prefix

VPP uses byte in range of 0 to 255 but when jni is used
and this type is converted to java byte which has range
of -128 to 127 it will convert it to negative value.
It then fails to create Ip6Prefix from this value.

Change-Id: Ic18686959682c153da2e4ee4a7f7841c9b56e5d3
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
7 years agoexamples/ncclient: update Readme.txt with more detailed instructions 29/12329/1
Marek Gradzki [Wed, 2 May 2018 12:20:29 +0000 (14:20 +0200)]
examples/ncclient: update Readme.txt with more detailed instructions

Change-Id: If22b47736937428b1aa84105ba589f53be8d35fa
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit b104beedcc9528ce2680e77a041ac26dc3f6a9bf)

7 years agoSet Hc2vpp version to 1.18.04.1-SNAPSHOT 87/12287/1
Marek Gradzki [Mon, 30 Apr 2018 08:20:49 +0000 (10:20 +0200)]
Set Hc2vpp version to 1.18.04.1-SNAPSHOT

Change-Id: Ie2307b319b361b9dc29e5293c3163e4f53856311
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHc2vpp 1.18.04 release 86/12286/1 v1.18.04
Marek Gradzki [Mon, 30 Apr 2018 08:10:20 +0000 (10:10 +0200)]
Hc2vpp 1.18.04 release

Change-Id: Ie9d36ef641e2e6acc1636e3d4affc92a91866f07
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agojavadoc: add missing <name> in pom files 85/12285/1
Marek Gradzki [Mon, 30 Apr 2018 07:52:24 +0000 (09:52 +0200)]
javadoc: add missing <name> in pom files

Change-Id: I9f892e528326cb13cafc20bc9e2d7e6a94c7d407
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHc2vpp 1.18.04 release notes 84/12284/1
Marek Gradzki [Mon, 30 Apr 2018 07:27:20 +0000 (09:27 +0200)]
Hc2vpp 1.18.04 release notes

Change-Id: I0531ce7aaf16cf4ea7ef679dc3ec702e29b391bd
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoMove docker files to examples directory 83/12283/1
Marek Gradzki [Mon, 30 Apr 2018 07:03:13 +0000 (09:03 +0200)]
Move docker files to examples directory

Change-Id: Ib2eb3dbae76a1e9b5d98ce9e0d5eea9adba280cf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHC2VPP-313: <copy-config> examples using nnclient library 74/11974/3
Marek Gradzki [Wed, 18 Apr 2018 06:19:36 +0000 (08:19 +0200)]
HC2VPP-313: <copy-config> examples using nnclient library

Shows how to configure VPP using nnclient library.

Requires following changes to ODL Netconf (HC2VPP-312):
- <copy-config> support:
  https://git.opendaylight.org/gerrit/#/c/69606/
- various fixes to make ODL Netconf compatible with nnclient:
  https://git.opendaylight.org/gerrit/#/c/71181/

and ncclient library with the following change:
https://github.com/marekgr/ncclient/commit/fbc31b06daf114c11dcb6bf1bcfac9127b2e0062

Change-Id: I3dceb8ead6e6f558a3c76f6c1c3b0ba5f7c52f93
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoUpdate NSH_SFC version from 18.04-RC1 to 18.04 82/12282/1
Marek Gradzki [Mon, 30 Apr 2018 05:47:18 +0000 (07:47 +0200)]
Update NSH_SFC version from 18.04-RC1 to 18.04

Change-Id: I4957696a440cb5b04a8dacb7503409e49feb5ac2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoSet jvpp version to 18.04 56/12156/2
Marek Gradzki [Thu, 26 Apr 2018 08:00:22 +0000 (10:00 +0200)]
Set jvpp version to 18.04

NSH_SFC release artifacts are not available yet,
so 18.04-RC1 version was used.

Change-Id: I56e8810e4dd7dee3f15100103ee183bcfce41c12
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoapi-docs: update dependencies version to match hc2vpp parent 58/12258/1
Marek Gradzki [Fri, 27 Apr 2018 12:29:02 +0000 (14:29 +0200)]
api-docs: update dependencies version to match hc2vpp parent

See: HC2VPP-311

Change-Id: Ib2a1d8cb8350538b16bfb8831b1a175b9e58c281
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoSet csit-test-branch to rls1804 57/12157/1
Marek Gradzki [Thu, 26 Apr 2018 08:06:02 +0000 (10:06 +0200)]
Set csit-test-branch to rls1804

Change-Id: I399e87c287b02cffd12ad8b73da43e42cf05852f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoRelease notes: update ODL references in the BGP user guide 76/11976/4
Marek Gradzki [Mon, 23 Apr 2018 05:08:28 +0000 (07:08 +0200)]
Release notes: update ODL references in the BGP user guide

Change-Id: I7d0409cb2dbac9852f1ebea1784fec92c873c792
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agonat: update pool-id for Nat64 in the postman collection 64/11964/1
Marek Gradzki [Fri, 20 Apr 2018 12:17:08 +0000 (14:17 +0200)]
nat: update pool-id for Nat64 in the postman collection

Removes conflict with Nat44 examples.

Change-Id: Ib61518d63e90718233cb72003ae2e5082105e86f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoForbid delete of default NAT instance 43/11943/1
Marek Gradzki [Fri, 20 Apr 2018 05:02:03 +0000 (07:02 +0200)]
Forbid delete of default NAT instance

NAT instances are mapped to VPP's VRFs.
Default NAT instance (id=0) is mapped to default VRF,
which is allways present in VPP.

This patch forbids deleteion of default instance
to be consistent with VPP behaviour
and NAT instance reader implementation.

Change-Id: I71aa6986395e4ba67baaa75d90905b450434aca4
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHC2VPP-308: forbid local0 deletion 26/11926/1
Marek Gradzki [Thu, 19 Apr 2018 10:27:16 +0000 (12:27 +0200)]
HC2VPP-308: forbid local0 deletion

Adds special case for local0 in InterfaceCustomizer.deleteCurrentAttributes.

Change-Id: I1eb0826f90bd5dbbdb3b6cbb4b19ac5cadb1a68f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoAdapt acl_postman_collection.json to Oxygen bump (HONEYCOMB-424) 67/11867/3
Marek Gradzki [Wed, 18 Apr 2018 06:30:30 +0000 (08:30 +0200)]
Adapt acl_postman_collection.json to Oxygen bump (HONEYCOMB-424)

Changes encoding of empty type to [null] (RFC8040)
from {} that was used so far.

Change-Id: I0ee8eace151e5bd69e99976c567f527d197024c0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoSet Hc2vpp version back to 1.18.04-SNAPSHOT 23/11623/1
Marek Gradzki [Mon, 9 Apr 2018 14:41:22 +0000 (16:41 +0200)]
Set Hc2vpp version back to 1.18.04-SNAPSHOT

Change-Id: I7b191fa93bbdfbcf3a3558b0fbf48d5c1e524b30
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHc2vpp 1.18.04-RC1 22/11622/1 v1.18.04-RC1
Marek Gradzki [Mon, 9 Apr 2018 14:28:51 +0000 (16:28 +0200)]
Hc2vpp 1.18.04-RC1

Change-Id: Icf7b2a3c3f9a6b58be82a1eaafbc1386eb4d3831
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoIntroduce stable/1804 branch 21/11621/1
Marek Gradzki [Mon, 9 Apr 2018 14:16:28 +0000 (16:16 +0200)]
Introduce stable/1804 branch

This patch:

- updates <project-branch> in the release notes,
- sets stable/1804 as default branch for gitreview,
- updates RPM/DEB release to RC1~$BUILD_NUMBER

Change-Id: I2fa5a7be12bb35d0a2b4705e47ea37c961692ff7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agorelease notes: set <project-odl-version> to oxygen 19/11619/2
Marek Gradzki [Mon, 9 Apr 2018 14:19:53 +0000 (16:19 +0200)]
release notes: set <project-odl-version> to oxygen

Change-Id: I54f7e96fd923ee54f0186d19d90bd6d5e0275271
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHC2VPP-283: cleanup honeycomb dependency versions 11/11611/2
Marek Gradzki [Mon, 9 Apr 2018 13:23:17 +0000 (15:23 +0200)]
HC2VPP-283: cleanup honeycomb dependency versions

Introduces honeycomb.version property in hc2vpp-parent
and adds various honeycomb artifacts to impl-parent
to reduce work when bumping honeycomb version.

Change-Id: I2f31f255aa5234c6890073b93b11f93e5cd444f7
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHC2VPP-290: fix access-control-list-ref definition 90/11590/1
Marek Gradzki [Mon, 9 Apr 2018 06:07:55 +0000 (08:07 +0200)]
HC2VPP-290: fix access-control-list-ref definition

Fixes pyang validation issues of ietf-access-control-list@2016-07-08.yang

Change-Id: I6f6034ac854814315b09807bd81b33a3a77b6f40
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoRemove unused method parameters 89/11589/1
Marek Gradzki [Mon, 9 Apr 2018 05:13:24 +0000 (07:13 +0200)]
Remove unused method parameters

Change-Id: Ib6bb2b3378c9bb883bfa9bd1348813f7845b6b59
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoAdapt hc2vpp to ODL Oxygen (HONEYCOMB-424) 43/10643/5
Marek Gradzki [Mon, 19 Feb 2018 14:03:19 +0000 (15:03 +0100)]
Adapt hc2vpp to ODL Oxygen (HONEYCOMB-424)

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

Also changes encoding of empty type in json test files
to [null] (RFC8040) from {} that was used so far.

Honeycomb uses draft-ietf-netconf-restconf-02
of restconf compoments, so there might be
a bug in ODL or HC configuration.

To resolve it,
using RFC8040 version of ODL restconf components
should be considered (HONEYCOMB-430).

Not covered:
- postman collections update
- CSIT tests update

Change-Id: I820c46b5b0b22330e8529e8870c8bdad9508473b
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agonaming-context-api: update description of yang modules 93/11493/1
Marek Gradzki [Tue, 3 Apr 2018 12:30:02 +0000 (14:30 +0200)]
naming-context-api: update description of yang modules

Change-Id: Ibe4a45d8c775f957d7e7d2ab215c7e483f1bc011
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoapi: update copyright to match revision information 92/11492/1
Marek Gradzki [Tue, 3 Apr 2018 12:17:23 +0000 (14:17 +0200)]
api: update copyright to match revision information

Change-Id: Ib7825ea727fd8105dd679587059333888caeef5c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix interface-nat@2017-08-16.yang revision information 91/11491/1
Marek Gradzki [Tue, 3 Apr 2018 12:08:07 +0000 (14:08 +0200)]
Fix interface-nat@2017-08-16.yang revision information

Change-Id: Ie8d6faf941e5b4a574ad51f653cde71f1f3dacc2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoUpdate metadata of hc2vpp YANG models 08/11308/4
Marek Gradzki [Thu, 22 Mar 2018 13:55:10 +0000 (14:55 +0100)]
Update metadata of hc2vpp YANG models

Adds organization and contact statements.
Includes copyright in the description of modules.
Fixes minor formatting issues.

Change-Id: I9fa90c24e956d5cb2c3fde8621ed289f383501ac
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agonsh: remove unused dependencies 95/11295/3
Marek Gradzki [Thu, 22 Mar 2018 11:21:59 +0000 (12:21 +0100)]
nsh: remove unused dependencies

Change-Id: I9c4fd1250a5b30217464181587760af39cdeb2f8
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agonsh: fix issues found by pyang 92/11292/3
Marek Gradzki [Thu, 22 Mar 2018 10:00:47 +0000 (11:00 +0100)]
nsh: fix issues found by pyang

Change-Id: I7312cdd3d37657d8ea10cb36bd13b48a8d353667
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoioam-sb-export: fix issues found by pyang 05/11305/1
Marek Gradzki [Thu, 22 Mar 2018 13:11:00 +0000 (14:11 +0100)]
ioam-sb-export: fix issues found by pyang

Change-Id: I3f3200f98cb2e685019ea46b2682a94db92611ec
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agomulti-naming-context: fix issues found by pyang 04/11304/1
Marek Gradzki [Thu, 22 Mar 2018 13:06:07 +0000 (14:06 +0100)]
multi-naming-context: fix issues found by pyang

Change-Id: I116daf1c7cffdbe311e0308c8fe67809c303aecf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agovpp-classifier: fix issues found by pyang 03/11303/1
Marek Gradzki [Thu, 22 Mar 2018 13:02:49 +0000 (14:02 +0100)]
vpp-classifier: fix issues found by pyang

Change-Id: Ice51b4974a37e4097787e47d735da8849f6d816f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agov3po: fix issues found by pyang 01/11301/1
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>
7 years agosamples: fix issues found by pyang 00/11300/1
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>
7 years agorouting: fix issues found by pyang 96/11296/1
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>
7 years agonat: fix issues found by pyang 91/11291/1
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>
7 years agompls: update yang model metadata 90/11290/1
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>
7 years agolisp: fix issues found by pyang 87/11287/1
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>
7 years agol3: update yang model metadata 85/11285/2
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>
7 years agol3: fix issues found by pyang 84/11284/1
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>
7 years agointerface-role: update yang model metadata 82/11282/1
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>
7 years agointerface-role: fix issues found by pyang 79/11279/1
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>
7 years agodhcp: update yang model metadata 78/11278/1
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>
7 years agodhcp: fix issues found by pyang 77/11277/1
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>
7 years agoacl: update yang model metadata 68/11268/2
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>
7 years agoacl: fix issues found by pyang 54/11254/1
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>
7 years agoHC2VPP-289: fix 802dot1 identifiers 28/11228/1
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>
7 years agoUpdate Docker file for demos 15/11115/2
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>
7 years agoAdapt mpls plugin to recent VPP API changes 72/11072/2
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>
7 years agoRevert "Fix generating of docs" 33/10933/1
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>
7 years agoFix generating of docs 31/10931/1
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>
7 years agoMove ietf-routing-types to routing-api 24/10924/1
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>
7 years agoFix mdsal-model-artifacts dependency for routing-api 32/10832/1
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>
7 years agoRemove usages of Sun's Nullable 72/10772/1
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)

7 years agoRelease notes update after releasing 1.18.01 72/10372/2
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>
7 years agoUpdate BGP INET examples 65/10365/1
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)

7 years agoHC2VPP-270: BGP Prefix SID configuration examples 64/10364/1
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)

7 years agoHC2VPP-280: make next-hop optional for impose-and-forward 60/10360/2
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)

7 years agoHC2VPP-279: support special labels in hc2vpp-ietf-routing-types@2017-02-27 56/10356/3
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)

7 years agoMake rpmbuild.sh use hc2vpp_version 54/10354/2
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>
7 years agoAdd direct update support for static lsp 52/10352/2
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)

7 years agoUpdate VPP API to Yang index 55/10355/1
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)

7 years agoFix jvpp install scripts 89/10189/1
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)

7 years agoDocument csit-test-branch file 90/10090/1
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>
7 years agoMove jvpp_version file to jvpp dir 2/2 66/10066/1
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>
7 years agoBump jvpp version to 18.04-SNAPSHOT 65/10065/1
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>
7 years agoUpdate jira project version in hc2vpp 1.18.04 release notes 63/10063/1
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>
7 years agoIntroduce hc2vpp_version 46/10046/3
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>
7 years agoBump hc2vpp version to 1.18.04-SNAPSHOT 53/10053/1
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>
7 years agoMove jvpp_version file to jvpp dir 1/2 40/10040/2
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>
7 years agoBGP demo: include vpp and hc version in the Readme.txt 15/10015/2
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>
7 years agoBGP demo: exit init.sh if VPP failed to start 14/10014/1
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>
7 years agoBGP-HC docker example 98/9998/2
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>
7 years agoHC2VPP-274(dhcp.yang): use inet:ip-address-no-zone instead of inet:ip-address 28/9928/1
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>
7 years agoHC2VPP-157: use interface-ref instead of string name 24/9924/3
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>
7 years agoDocument changes to ietf-routing@2014-05-24.yang 19/9919/2
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>
7 years agompls-api: add missing yang dependencies 18/9918/2
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>
7 years agoHC2VPP-221: postman collection with configuration examples 99/9899/1
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>
7 years agoHC2VPP-268: add non-eos MPLS and IP FIB entries 98/9898/2
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>
7 years agoHC2VPP-268: BGP prefix SID translation 85/9885/2
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>
7 years agoScripts for installing jvpp jars to local mvn repo 74/9874/1
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>
7 years ago(Multi)NamingContext: increment after computing max 31/9831/3
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>
7 years agoRepleace attribte references in bgp_in_honeycomb_user_guide.adoc 97/9797/1
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>
7 years agoFix module config version in BGP docs 95/9795/1
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>
7 years agoClean Sonar warnings in JvppReplyConsumer 88/9788/1
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>
7 years agoDo not use createVrfIfNeeded of IpAddDelRoute 86/9786/2
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>