honeycomb.git
6 years agoShutdown closing of resources 74/7974/3
Jan Srnicek [Thu, 10 Aug 2017 12:39:30 +0000 (14:39 +0200)]
Shutdown closing of resources

Change-Id: If57a5414153cb983138872c7a1ded7c7066b1b6d
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-381 - Shutdown handler 68/7968/3
Jan Srnicek [Thu, 10 Aug 2017 10:05:41 +0000 (12:05 +0200)]
HONEYCOMB-381 - Shutdown handler

Change-Id: I5cf4317e5838470d1e792090c67d97db76ed14f2
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-387: bind HoneycombNotification2Netconf as EagerSingleton 76/7976/1
Marek Gradzki [Thu, 10 Aug 2017 11:09:48 +0000 (13:09 +0200)]
HONEYCOMB-387: bind HoneycombNotification2Netconf as EagerSingleton

https://gerrit.fd.io/r/#/c/7411/10 moved HoneycombNotification2Netconf
instance creation out of distribution's Main.

HoneycombNotification2Netconf is not used in any provider,
so needs to be initialized eagerly.

Change-Id: I1a5cfe6eb83b75a0b175052a8bda32eb4619218e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-362: bump ODL dependencies to Carbon 24/6924/10
Marek Gradzki [Fri, 21 Jul 2017 13:26:10 +0000 (15:26 +0200)]
HONEYCOMB-362: bump ODL dependencies to Carbon

Change-Id: I63fa239e34178ab03c4eecd421bf19d80303d30e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-357: plugin development tutorial update 29/7829/1
Marek Gradzki [Wed, 26 Jul 2017 14:46:01 +0000 (16:46 +0200)]
HONEYCOMB-357: plugin development tutorial update

Distribution's modules configuration was moved to pom.xml
Restconf port was updated.
Section on netconf testing was added.

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

6 years agoMove BGP examples to hc2vpp 28/7828/1
Marek Gradzki [Thu, 27 Jul 2017 12:08:44 +0000 (14:08 +0200)]
Move BGP examples to hc2vpp

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

6 years agoHONEYCOMB-369: configurable BGP peers 91/7591/1
Marek Gradzki [Thu, 13 Jul 2017 08:41:27 +0000 (10:41 +0200)]
HONEYCOMB-369: configurable BGP peers

BGP peer configuration is no longer read from bgp-peer.json file.
Netconf/Restconf is can be used instead.
BGP peer configuration in HC follows openconfig-extensions model (as in ODL BGP):
* http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html#bgp-peering
* http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html#bgp-application-peer-and-programmable-rib

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

6 years agoMake BGP protocol instance name configurable 78/7578/2
Marek Gradzki [Fri, 14 Jul 2017 07:14:22 +0000 (09:14 +0200)]
Make BGP protocol instance name configurable

Change-Id: I49a201b8e027d229a60bb76abe9b5688af7b7cdf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-370: make bgp peers configuration optional 79/7579/2
Marek Gradzki [Fri, 14 Jul 2017 07:31:18 +0000 (09:31 +0200)]
HONEYCOMB-370: make bgp peers configuration optional

Change-Id: I459425f4ee8f43d0bf196d2c762e741c58667907
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-360 - Netconf Northbound Intefaces provider separation 11/7411/10
Jan Srnicek [Tue, 11 Jul 2017 15:56:04 +0000 (17:56 +0200)]
HONEYCOMB-360 - Netconf Northbound Intefaces provider separation

- Netconf configuration included under netconf.json

Change-Id: If2a51d689e9bfc950da73f15a438277839140f8a
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-360 - Restconf Northbound Intefaces provider separation 45/7345/15
Jan Srnicek [Thu, 13 Jul 2017 18:21:01 +0000 (20:21 +0200)]
HONEYCOMB-360 - Restconf Northbound Intefaces provider separation

- Restconf configuration included under restconf.json

Change-Id: I45f503d3ef383bd6e3d356308d3212c7314b7a28
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoFix typo in infra/cfg-init/asciidoc/Readme.adoc 70/5070/2
lijingjing [Wed, 8 Feb 2017 08:15:26 +0000 (16:15 +0800)]
Fix typo in infra/cfg-init/asciidoc/Readme.adoc

Change-Id: Ib6fb7cb8a4d98f123981b11f85bcdd0a7fb4d8ba
Signed-off-by: lijingjing <li.jingjing3@zte.com.cn>
6 years agoHONEYCOMB-373 - Remove local module mapping 00/7500/2
Jan Srnicek [Mon, 10 Jul 2017 13:03:37 +0000 (15:03 +0200)]
HONEYCOMB-373 - Remove local module mapping

Change-Id: Ic3a8a843168baed85cc31e0a09f9aa21cf691d1a
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoUpdate jira project version in relese notes for 1.17.10 60/7460/2
Marek Gradzki [Thu, 6 Jul 2017 16:48:32 +0000 (18:48 +0200)]
Update jira project version in relese notes for 1.17.10

Change-Id: I450a247382a5ee57d219332c24f1fe0e1cb7f8f1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoBump honeycomb version to 1.17.10-SNAPSHOT 51/7451/2
Marek Gradzki [Thu, 6 Jul 2017 15:17:26 +0000 (17:17 +0200)]
Bump honeycomb version to 1.17.10-SNAPSHOT

Change-Id: I6294fc266b704568d4e093a50d615f96eac153be
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoFix distribtion test poms 55/7455/1
Marek Gradzki [Thu, 6 Jul 2017 15:27:55 +0000 (17:27 +0200)]
Fix distribtion test poms

Properly define relativePath for parent projects.

Change-Id: Ia9759f98e2266795b2794dd699a2fe4940159a47
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-377: remove enabled flag for bgp 38/7438/2
Marek Gradzki [Thu, 6 Jul 2017 10:55:17 +0000 (12:55 +0200)]
HONEYCOMB-377: remove enabled flag for bgp

Use module configuration to enable/disabe BGP.
Also hides BgpExtensionModule module to the user
(until HONEYCOMB-363 is fixed).

Change-Id: I8294d080138a0bcf640420484b76c089aa332d93
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-360 - Separate ProviderTrait to dedicated project 87/7387/2
Jan Srnicek [Mon, 3 Jul 2017 11:01:36 +0000 (13:01 +0200)]
HONEYCOMB-360 - Separate ProviderTrait to dedicated project

This change is necessary to break dep cycle, that would by introduced
by splitting netconf and data-core modules. Also allows to reduce
use in hc2vpp(some project incude whole minimal-distribution-core
just because of this one interface)

Change-Id: I7744b4dc78f6d6797263b10bbc4ead545a2f6593
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-374: move BGP to minimal-distribution 63/7363/5
Marek Gradzki [Fri, 30 Jun 2017 11:11:22 +0000 (13:11 +0200)]
HONEYCOMB-374: move BGP to minimal-distribution

Separate BGP distribution was temporary workaround
for HONEYCOMB-358 and (partially) HONEYCOMB-360.

BGP northbound interface is disabled by default.

Change-Id: I72a0f83f40ea96bee478be7d6560f2112611d80f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-373 - Move configuration to minimal-distribution-core 84/7384/1
Jan Srnicek [Mon, 3 Jul 2017 09:05:37 +0000 (11:05 +0200)]
HONEYCOMB-373 - Move configuration to minimal-distribution-core

Change-Id: Iee0644e01ad21f20adbc36fb8ace556e5ce4a8c4
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-360 - Common northbound configuration 64/7364/3
Jan Srnicek [Fri, 30 Jun 2017 11:46:26 +0000 (13:46 +0200)]
HONEYCOMB-360 - Common northbound configuration

Change-Id: Iefa1c4a7388c628c9527a00b13be59d98db640ec
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-360 - Utility for conditional initialization of HC guice modules 61/7361/7
Marek Gradzki [Fri, 30 Jun 2017 19:53:23 +0000 (21:53 +0200)]
HONEYCOMB-360 - Utility for conditional initialization of HC guice modules

Change-Id: Ia1a3f44c7dae0b4b0be99f96abb017e1b022ec32
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-373 - Separate minimal distribution modules to core module 62/7362/4
Jan Srnicek [Fri, 30 Jun 2017 10:46:56 +0000 (12:46 +0200)]
HONEYCOMB-373 - Separate minimal distribution modules to core module

Change-Id: I5278f91ea06f57c84b44a8458ef44469ebd0cf84
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-358 - Conditional module loading 89/7289/8
Jan Srnicek [Fri, 30 Jun 2017 13:10:27 +0000 (15:10 +0200)]
HONEYCOMB-358 - Conditional module loading

Change-Id: Ic9b7182cc77bf2f73cf5edd3ee19f25f53711cda
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-358 - Generate guice to yang modules index 51/7251/12
Jan Srnicek [Fri, 30 Jun 2017 08:08:14 +0000 (10:08 +0200)]
HONEYCOMB-358 - Generate guice to yang modules index

Generates two descriptor files
yang-modules-binding/yang-modules - List of Yang modules by project(classpath + deps)
yang-mapping/FULL_PROJECT_NAME-yang-modules-index - Index from Guice modules to Yang modules
that are used by respective Guice module

These files are included in jar files and distribution resources

Change-Id: Iafc178219245df9129fb426a5876215c6fd1837e
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoHONEYCOMB-358 - Activation module 72/7272/4
Jan Srnicek [Tue, 27 Jun 2017 07:25:04 +0000 (09:25 +0200)]
HONEYCOMB-358 - Activation module

Provides module that provides set of distribution started modules

Change-Id: I54287cc17f3af7d51a47a7342e5b8496e5ade00e
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoBump ODL dependencies to Boron-SR4 05/6105/6
Marek Gradzki [Wed, 15 Mar 2017 22:08:34 +0000 (23:08 +0100)]
Bump ODL dependencies to Boron-SR4

Change-Id: I06aee0da6fe2f702c735bfa5413de19ba3132046
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoUpdate BGP postman collection with labeled-unicast examples 20/7220/1
Marek Gradzki [Tue, 20 Jun 2017 11:47:28 +0000 (13:47 +0200)]
Update BGP postman collection with labeled-unicast examples

Change-Id: Iebbd67bfbf79460b4964a24b4ef76d0e1bdabd47
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-356: API implementation 86/7186/2
Marek Gradzki [Mon, 19 Jun 2017 06:30:19 +0000 (08:30 +0200)]
HONEYCOMB-356: API implementation

RibWriter registers DataTreeChangeListener for given route type.
RouteWriter recevies create/update/delete notifications for single route
modifications in LocRib DS.

Change-Id: I4832abfb25aa189ecd3964febd6071f9a25117b2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoAdd support for BGP labeled unicast ipv4 extension 84/7184/1
Marek Gradzki [Mon, 19 Jun 2017 06:25:04 +0000 (08:25 +0200)]
Add support for BGP labeled unicast ipv4 extension

Change-Id: Id004eaf98d03daec260e7c13b79ced0f4785b952
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoIncrease timeout for distro tests 76/7176/2 v1.17.07-F0
Marek Gradzki [Fri, 16 Jun 2017 11:05:01 +0000 (13:05 +0200)]
Increase timeout for distro tests

Change-Id: I9eb2db901112ac861e078f9a320ceb81d7e83dbf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHONEYCOMB-356: translate API for BGP routes 74/7174/2
Marek Gradzki [Fri, 16 Jun 2017 08:40:20 +0000 (10:40 +0200)]
HONEYCOMB-356: translate API for BGP routes

Change-Id: Iba3698737772544f4e4bd99db4c07319d74305fc
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoMove Ids interface to test-model 73/7073/2
Marek Gradzki [Fri, 9 Jun 2017 06:43:25 +0000 (08:43 +0200)]
Move Ids interface to test-model

The interface is useful for testing infra with HC's test-model

Change-Id: I6c1fd1888bccfd2ff461984bc0b4b7c42ce65347
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoExclude .idea folder from checkstyle 72/7072/2
Jan Srnicek [Fri, 9 Jun 2017 06:47:21 +0000 (08:47 +0200)]
Exclude .idea folder from checkstyle

Change-Id: I4e9cd08ad8640b2733fa1c62cbd620a639e81bed
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
6 years agoMove ordering logic out of AbstractSubtreeManagerRegistryBuilderBuilder 57/7057/3
Marek Gradzki [Thu, 8 Jun 2017 10:18:08 +0000 (12:18 +0200)]
Move ordering logic out of AbstractSubtreeManagerRegistryBuilderBuilder

Introduces YangDAG that maintains topological order for yang schema
nodes and can be used by other components to read additional graph edges,
e.g. from file (HONEYCOMB-365).

Change-Id: Ia3046d38ffb4ca222412309f6c4391afc9315bd2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoHide reader and writer registry builders in registry providers. 56/7056/1
Marek Gradzki [Thu, 8 Jun 2017 12:49:22 +0000 (14:49 +0200)]
Hide reader and writer registry builders in registry providers.

Only ReaderRegistry and WriterRegistry instances are needed by other components.

Change-Id: Icc026154e80be4ca9424c79754f342e93fda0735
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoDedicated provider for BgpNeighbours 54/6954/1
Marek Gradzki [Wed, 31 May 2017 08:50:13 +0000 (10:50 +0200)]
Dedicated provider for BgpNeighbours

Change-Id: I1a98ea27dde5ba77f8b20382dfeb29496f3282b2
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoProvide RIB/BGPExtensionConsumerContext as singletons 51/6951/1
Marek Gradzki [Wed, 31 May 2017 08:39:24 +0000 (10:39 +0200)]
Provide RIB/BGPExtensionConsumerContext as singletons

Whitout specifying it explicitly Guice might create more instances

Change-Id: Ia3cf56e54d59fa49488ab93a26a9db44cec51e8d
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-355: move BGP to separate distribution 63/6763/5
Marek Gradzki [Thu, 18 May 2017 14:46:46 +0000 (16:46 +0200)]
HONEYCOMB-355: move BGP to separate distribution

Given current YangBindingProviderModule implementation (HONEYCOMB-358),
needed to preserve footprint of minimal distro.

The change also:
- reverts logger&persistence config changes
introduced by https://gerrit.fd.io/r/#/c/5972/
- improves logging for BGP component initialization

Change-Id: Ie223833518be21628edb7ace36c7618e427585e0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoInclude ODL's BGP to HC minimal distro 31/6631/8
Marek Gradzki [Fri, 31 Mar 2017 09:24:24 +0000 (11:24 +0200)]
Include ODL's BGP to HC minimal distro

Features:
- static bgp instance
- static peer registry (both remote & app peers supported)
- bgp operational state exposed via RESTCONF/NETCONF
- bgp-inet support
- postman collection with examples

TODOs:
- make bgp disabled by default in honeycomb.json (probably bgp should be build using profile
  or allow to filter yangs loaded by SchemaCtx, otherwise footprint will grow)
- update asciidocs for infra module
- SPI for VPP integration:
  - allow RIB changes listeners
  - or writers (that can reject changes) to mirror netconf/restconf design
- expose bgp server & peer cfg via netconf/restconf (currently read from json files)
- test support for all BGP extensions (flowspec BGP needs additional care)
- make bgp extensions fully configurable (probably requires changes in ODL)

Testing

1) start hc distro:
./infra/minimal-distribution/target/minimal-distribution-1.17.07-SNAPSHOT-hc/minimal-distribution-1.17.07-SNAPSHOT/honeycomb

2) run bgp-testtool:
java -jar ./target/bgp-testtool-0.6.3-Boron-SR3-executable.jar
 -ra 127.0.0.1:1790 -la 127.0.0.2:17900 -pr 2 -ll DEBUG --active true -as 65000 -mp true

then GET http://localhost:8183/restconf/operational/bgp-rib:bgp-rib

Change-Id: I156d6a1c79174279db8c8936c40ac1f28e14794c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoUpdate initialization example in honeycomb archetype 49/6849/1
Marek Gradzki [Wed, 24 May 2017 06:33:12 +0000 (08:33 +0200)]
Update initialization example in honeycomb archetype

Removes unsupported AbstractDataTreeConverter

Change-Id: I0b45f1d16139a55f2248294b57bfad6d8ee32c45
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoRemove unnecessary usages of Supplier interface 80/6780/1
Marek Gradzki [Fri, 19 May 2017 07:30:58 +0000 (09:30 +0200)]
Remove unnecessary usages of Supplier interface

Change-Id: I6bc2f99806f81c206dcf31711a01fcebe809288a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-350 - APPEAR/DISAPPEAR modification handling 77/6177/5
Jan Srnicek [Tue, 9 May 2017 13:28:14 +0000 (15:28 +0200)]
HONEYCOMB-350 - APPEAR/DISAPPEAR modification handling

Allows these types of modifications to check in depth,
to see if some of their children nodes were not modified

Change-Id: Ice2f988732c2d9ecad8e960c4f10d01863fb0cfd
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoDocumentation cleanup after releasing 1.17.04 45/6545/1
Marek Gradzki [Tue, 2 May 2017 06:53:52 +0000 (08:53 +0200)]
Documentation cleanup after releasing 1.17.04

Change-Id: I644c229ce82e4ea9feb9d53a6fe059a7fbe15d77
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-269: release notes update 57/6457/1
Marek Gradzki [Fri, 27 Jan 2017 14:06:32 +0000 (15:06 +0100)]
HONEYCOMB-269: release notes update

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

7 years agoBump ODL dependencies to Boron-SR3 63/5763/5
Marek Gradzki [Wed, 15 Mar 2017 22:08:34 +0000 (23:08 +0100)]
Bump ODL dependencies to Boron-SR3

Boron SR3 contains fixes for HC2VPP-62,HC2VPP-69,HC2VPP-68

Change-Id: I06ad40da6fe2f702c735bfa5413de19ba3132046
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoIntroduce salGenerator.version property 83/6083/1
Marek Gradzki [Fri, 7 Apr 2017 08:49:06 +0000 (10:49 +0200)]
Introduce salGenerator.version property

All ODL dependencies are in one place now.

Change-Id: I0fc91f7efcf81e002dcbef9acfef1d82eac80238
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoBump version to 1.17.07-SNAPSHOT 70/5970/1
Marek Gradzki [Fri, 31 Mar 2017 05:52:48 +0000 (07:52 +0200)]
Bump version to 1.17.07-SNAPSHOT

Change-Id: Ie7b486c266ea34df999e7122b5ef12d26aded863
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix memory-benchmark-api pom.xml 69/5969/1
Marek Gradzki [Fri, 31 Mar 2017 05:32:42 +0000 (07:32 +0200)]
Fix memory-benchmark-api pom.xml

Change-Id: I72f0e5339d9fc39a3ca76c67a20e8358ce7f700a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-348: include dump params in entity key 11/5811/2
Marek Gradzki [Tue, 21 Mar 2017 12:38:21 +0000 (13:38 +0100)]
HONEYCOMB-348: include dump params in entity key

Change-Id: I18b2ea3c897c467740f19bf346d13240aac458ac
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoUse StreamWriterGenerator.create instead of deprecated constructor 55/5655/2
Marek Gradzki [Tue, 7 Mar 2017 17:05:43 +0000 (18:05 +0100)]
Use StreamWriterGenerator.create instead of deprecated constructor

Change-Id: Ief2224325fb7b9ec1dd3bbb21536f6306b68aa1a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-344 - structural reader for list 24/5424/3
Jan Srnicek [Fri, 24 Feb 2017 09:39:55 +0000 (10:39 +0100)]
HONEYCOMB-344 - structural reader for list

Change-Id: Ia02ed73daaeea547d49c9ec2d4d7d10f4db85b5e
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoResource nullability check for test runner 43/5443/1
Jan Srnicek [Tue, 21 Feb 2017 09:41:17 +0000 (10:41 +0100)]
Resource nullability check for test runner

checks if provided resource path was found

Change-Id: I86ed1b6f38bc8f48fd12ebe8620831862840ed11
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoDowngrade ODL dependencies to Beryllium-SR4 64/5064/5
Marek Gradzki [Tue, 7 Feb 2017 15:53:06 +0000 (16:53 +0100)]
Downgrade ODL dependencies to Beryllium-SR4

Workaround for HC2VPP-62
until
https://bugs.opendaylight.org/show_bug.cgi?id=7759
is fixed.

Change-Id: I0e9c82378865bf99c1843b0399940a53350e2d76
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoAdded debug logs for transactions 28/5128/1
Jan Srnicek [Tue, 14 Feb 2017 18:49:56 +0000 (19:49 +0100)]
Added debug logs for transactions

Change-Id: I4585cbc2100ef0a76e50e870d57b28221debf2f6
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoFix support for nested augmentations when augmenting lists 00/5100/1
Marek Gradzki [Fri, 10 Feb 2017 11:25:37 +0000 (12:25 +0100)]
Fix support for nested augmentations when augmenting lists

Change-Id: I96e7db8f295c9c3d5b14395c7785574d12d76ea9
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-334 - List entry injection for yang data 45/5045/3
Jan Srnicek [Fri, 10 Feb 2017 07:55:55 +0000 (08:55 +0100)]
HONEYCOMB-334 - List entry injection for yang data

Major changes
 - mechanism to inject list entries by key
 - provided processor registry to hide explicit implementations

 Minor changes
 - general refactoring

 Test cases
 - list in root of model
 - list under container
 - list under nested container
 - list in augmentation

Change-Id: I9abe1ce5f9176c132ad88627b135516574e40e06
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoPrevent submitting of structural reader for list node 70/4870/2
Jan Srnicek [Tue, 7 Feb 2017 08:33:38 +0000 (09:33 +0100)]
Prevent submitting of structural reader for list node

 Static customizer must be provided instead till
 HONEYCOMB-344 is resolved

Change-Id: Id71f69fe23b156e6de10eed06a3596de8e602bbe
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-293 - Memory benchmarking 38/4838/6
Jan Srnicek [Tue, 31 Jan 2017 09:00:51 +0000 (10:00 +0100)]
HONEYCOMB-293 - Memory benchmarking

Contains configuration for benchmarks:
- Honeycomb on rest(just infra, no data)
- Honeycomb with 1000 data nodes
- Honeycomb with 10000 data nodes

Each benchmark outputs two files:
- out_path_name-HeapMemoryUsage.csv
- out_path_name-NonHeapMemoryUsage.csv

Both files are in format :
committed,init,max,used
109576192,109051904,1525153792,12194752

Data sample sizes can be easily adjusted, just by changing
start parameter -DsampleSize

Change-Id: If6f9919307574237689326b4a38d410ec563200a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-302: add support for nested augmentations 68/4768/2
Marek Gradzki [Tue, 17 Jan 2017 12:30:50 +0000 (13:30 +0100)]
HONEYCOMB-302: add support for nested augmentations

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

7 years agoHONEYCOMB-240 - copy generated images to site folder 57/4757/1
Jan Srnicek [Wed, 18 Jan 2017 15:06:13 +0000 (16:06 +0100)]
HONEYCOMB-240 - copy generated images to site folder

Unable to achieve same results with maven resource plugin.

Change-Id: I564f00dcabca638b4bee40fe05ff8d4505623832
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-331: unify initialization handling 16/4616/1
Marek Gradzki [Mon, 9 Jan 2017 07:23:45 +0000 (08:23 +0100)]
HONEYCOMB-331: unify initialization handling

Due to incorrect instance of check, InitSubtreeReader was never created
in CompositeReaderRegistryBuilder.getSubtreeHandler().

As a consequence, initializers registered by subtreeAdd*, were not invoked.

The patch:
- fixes mentioned check,
- makes readers implement InitReader instead of directly
  implementing Initializer
- includes missing unit tests for GenericReaders.

Change-Id: I93be59fafddb60dce00191958b5c8c62e7c2d289
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoBump Honeycomb version to 17.04 57/4557/2
Marek Gradzki [Wed, 4 Jan 2017 12:45:57 +0000 (13:45 +0100)]
Bump Honeycomb version to 17.04

Change-Id: I99bc2593d50e59a6d4293e2d98ef3a9569a55008
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoDump supplier functional interface 04/4504/1
Jan Srnicek [Mon, 2 Jan 2017 11:49:05 +0000 (12:49 +0100)]
Dump supplier functional interface

Change-Id: I187b6b6b1c4c2812a24b4aad7cf9bc40d0f0de0c
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoBump ODL dependencies to Boron-SR2 42/4442/1
Marek Gradzki [Wed, 21 Dec 2016 08:49:14 +0000 (09:49 +0100)]
Bump ODL dependencies to Boron-SR2

Fixes HONEYCOMB-290 among others

Change-Id: I3902dacc2cc8279abec43cd3b4d74074485cf7e0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoBump restconf version to 1.4.2-Boron 02/4402/2
Marek Gradzki [Tue, 29 Nov 2016 07:57:21 +0000 (08:57 +0100)]
Bump restconf version to 1.4.2-Boron

Fixes Status.OK on fail with successful revert (HONEYCOMB-297)

Change-Id: I3862347775eea08a62671d5755f95b07f64e99bb
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-288: JMH's CSV postprocessing to format accepted by Jenkin's plot plugin 85/4385/2
Marek Gradzki [Mon, 19 Dec 2016 10:49:03 +0000 (11:49 +0100)]
HONEYCOMB-288: JMH's CSV postprocessing to format accepted by Jenkin's plot plugin

Generates 3 plots for write operations:
- simple-container.csv,
- list-in-container.csv,
- complex-list-in-container.csv

and one plot for read operations: operational-read.csv

from benchmark.csv.

Jenkins plot plugin uses only first record line from CSV file:
https://github.com/jenkinsci/plot-plugin/blob/master/src/main/webapp/help-csv.html#L15

therefore each generated CSV contains two lines: header and single record.

Change-Id: I489c3401673d72a4b3ea3ec00197366118d1ff5f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-151: Rpc support 56/4256/2 v1.17.01-RC0
Marek Gradzki [Sun, 11 Dec 2016 16:25:23 +0000 (17:25 +0100)]
HONEYCOMB-151: Rpc support

Change-Id: Iccffe5412b4bb06b606b66f7c0e7ebd601d5a7d1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoSet honeycomb version to 17.01 to allign with vpp release 37/4137/2
Marek Gradzki [Wed, 7 Dec 2016 07:56:02 +0000 (08:56 +0100)]
Set honeycomb version to 17.01 to allign with vpp release

Change-Id: I47f37a60f276928672fc2bd53e948641d9278014
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-289 - Type-aware support for DumpCacheManager 98/3898/2
Jan Srnicek [Thu, 24 Nov 2016 07:47:31 +0000 (08:47 +0100)]
HONEYCOMB-289 - Type-aware support for DumpCacheManager

Standard cache key factory made type-aware
Added checking for type of returned data from cache

Change-Id: Ie4d31a9d2b0d25c4b2f4ea66be98060f449007b6
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoFix leaf list modification detection 35/3635/6
Maros Marsalek [Mon, 21 Nov 2016 12:09:23 +0000 (13:09 +0100)]
Fix leaf list modification detection

Change-Id: Ib7bcde546faf8e9bf73d16adaf87c2f8c43ec4aa
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-170 Add more information to RevertFailedEx 38/3738/3
Maros Marsalek [Wed, 9 Nov 2016 08:44:26 +0000 (09:44 +0100)]
HONEYCOMB-170 Add more information to RevertFailedEx

Change-Id: I6b24a1d061c94d57730b20cde4c5b3c39444b119
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoRemove hc2vpp codebase 52/3852/1
Maros Marsalek [Thu, 10 Nov 2016 11:22:28 +0000 (12:22 +0100)]
Remove hc2vpp codebase

Moved to a dedicated hc2vpp project in fd.io

Change-Id: I03dc3b3029f21b127a00c69a86bcd8e467896241
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-58 - Routing Api 58/3758/3
Jan Srnicek [Thu, 10 Nov 2016 08:48:40 +0000 (09:48 +0100)]
HONEYCOMB-58 - Routing Api

Change-Id: Id887c12bea1983c0d185689c633902b691cf52f6
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-240 Remove imagesdir asciidcotor prefix 41/3741/2
Maros Marsalek [Wed, 9 Nov 2016 11:00:34 +0000 (12:00 +0100)]
HONEYCOMB-240 Remove imagesdir asciidcotor prefix

Change-Id: Ia086f3b677fe33ecb20a3ded780dac9f89415590
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-254 - Adjacencies dump support 63/3663/4
Jan Srnicek [Wed, 9 Nov 2016 07:55:04 +0000 (08:55 +0100)]
HONEYCOMB-254 - Adjacencies dump support

Added mapping context between adjacency id(HC side)
and combination of remote and local eids(vpp side)

Change-Id: Icbba9130a82b7af51b23e6d6d68fcfbf49e66c99
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoFix postman collection after vrf-id rename 23/3723/2
Maros Marsalek [Tue, 8 Nov 2016 12:13:29 +0000 (13:13 +0100)]
Fix postman collection after vrf-id rename

Change-Id: Iaf6c5ce430dd793a9cfff5527b910a79eab9aa2e
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoUpdate features in release notes 22/3722/2
Maros Marsalek [Tue, 8 Nov 2016 12:06:18 +0000 (13:06 +0100)]
Update features in release notes

Change-Id: I7c57d7c525bf29dde922d48c1c8b8b72cdec9980
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-270 Remove read (presence) workarounds for nat 21/3721/2
Maros Marsalek [Tue, 8 Nov 2016 11:34:36 +0000 (12:34 +0100)]
HONEYCOMB-270 Remove read (presence) workarounds for nat

Change-Id: Ia0986dbe173123a4dca4f7f3bf65e7ba4851b1b7
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-270 Add isPresent() to Readers/Customizers 20/3720/2
Maros Marsalek [Tue, 8 Nov 2016 09:13:36 +0000 (10:13 +0100)]
HONEYCOMB-270 Add isPresent() to Readers/Customizers

So that they can influence whether empty data is to be considered as present

+ Move registries implementations from util to impl
+ Introduce DelegatingReader trait
+ Extend GenericReader where possible to reduce duplication

Change-Id: I5a416acd0c4eab1fbc30fcbe585719991dbe9215
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-287 Infra micro-benchmarks 88/3688/8
Maros Marsalek [Thu, 3 Nov 2016 15:24:17 +0000 (16:24 +0100)]
HONEYCOMB-287 Infra micro-benchmarks

Config (write)
Operational (read)

Add -Pbenchmark to maven execution to include benchmarks

Change-Id: Ia4815ffc109e34629279b9418b962a9f91c38c30
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoMake persistence optional 90/3690/2
Maros Marsalek [Thu, 3 Nov 2016 17:04:26 +0000 (18:04 +0100)]
Make persistence optional

Change-Id: I9db2d9705abeb27be0fb0c71229386b1943dcaf9
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-276 - Mandatory for sub-tables 78/3678/4
Jan Srnicek [Fri, 4 Nov 2016 08:47:12 +0000 (09:47 +0100)]
HONEYCOMB-276 - Mandatory for sub-tables

Added mandatory for sub-tables under vni-table

Change-Id: I0f410cc0e79becafc16e7012395fa6269b278b98
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoProperly close open files(persistence) 87/3687/2
Maros Marsalek [Thu, 3 Nov 2016 15:21:13 +0000 (16:21 +0100)]
Properly close open files(persistence)

Change-Id: I0b6a01c7360e056059b0c8ed1821a0fdddc59308
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-257 - Honeycomb support for in-band OAM (iOAM) path tracing 07/3607/4
Srihari Raghavan [Thu, 27 Oct 2016 09:53:36 +0000 (15:23 +0530)]
HONEYCOMB-257 - Honeycomb support for in-band OAM (iOAM) path tracing

- Add iOAM module to handle configuration for the iOAM trace VPP plugin
- Add iOAM module test to verify add/delete configurations
- Reader/Initializers for future, dependent on https://gerrit.fd.io/r/3387

Change-Id: I557604a955771c139165aed7cd9e5716abbac3d1
Signed-off-by: Srihari Raghavan <srihari@cisco.com>
7 years agoHONEYCOMB-259 Fix compilation issue in nat 79/3679/1
Maros Marsalek [Thu, 3 Nov 2016 11:38:42 +0000 (12:38 +0100)]
HONEYCOMB-259 Fix compilation issue in nat

Change-Id: I22cb84d19cdf456f80359ef43988b2686f981d0b
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-285 - Cache scope for sub-interface addresses 75/3675/3
Jan Srnicek [Thu, 3 Nov 2016 07:25:47 +0000 (08:25 +0100)]
HONEYCOMB-285 - Cache scope for sub-interface addresses

Same as for interface addresses, these addresses must have
caching scope of their parent sub-interface

Change-Id: I31a8d123e02a99e592181c198f69a34b0be910e5
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-259 - CacheKeyFactory 11/3611/8
Jan Srnicek [Thu, 3 Nov 2016 08:37:28 +0000 (09:37 +0100)]
HONEYCOMB-259 - CacheKeyFactory

Provides logic for creating scoped keys

Change-Id: I126bcb9255b4f8a3f2585f50e6e718948581e7f0
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
7 years agoHONEYCOMB-281 Loopback interface management 59/3659/4
Maros Marsalek [Wed, 2 Nov 2016 11:35:50 +0000 (12:35 +0100)]
HONEYCOMB-281 Loopback interface management

Change-Id: I7e4d817bb7dfe9ccd779e59347c956233c012e4a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoAdd vpp-plugins as a dependency 60/3660/1
Maros Marsalek [Wed, 2 Nov 2016 12:34:23 +0000 (13:34 +0100)]
Add vpp-plugins as a dependency

Change-Id: I4d8b9ee9c398c4e233d41ea81de76fc7ba1b17ce
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-248 Enable in/out NAT feature read 42/3542/4
Maros Marsalek [Mon, 24 Oct 2016 14:14:37 +0000 (16:14 +0200)]
HONEYCOMB-248 Enable in/out NAT feature read

Change-Id: I6fe57b955437d0b0024323bcbac268f0ed4799f6
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-272: bump mockito version to 2.2.9 54/3654/1
Marek Gradzki [Fri, 28 Oct 2016 11:12:19 +0000 (13:12 +0200)]
HONEYCOMB-272: bump mockito version to 2.2.9

ArgumentMatchers.any() does not match null anymore,
so some of the tests has been updated.

Change-Id: I5de0fdfe87fc8e5c8ce24bfae8daeaba032195ff
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoAdd support for ipv6 vrf 38/3638/1
Marek Gradzki [Mon, 31 Oct 2016 14:46:41 +0000 (15:46 +0100)]
Add support for ipv6 vrf

Change-Id: I3372d4156a19157ca431cb29c23de33161f6cfc0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoHONEYCOMB-70: add control ping to vpp-state 37/3637/2
Marek Gradzki [Mon, 31 Oct 2016 13:37:57 +0000 (14:37 +0100)]
HONEYCOMB-70: add control ping to vpp-state

Change-Id: I7f02841d899465fd2156db0bb79fcc490cd4929f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoUpdate l2 constaint in v3po.yang 36/3636/1
Marek Gradzki [Mon, 31 Oct 2016 11:04:10 +0000 (12:04 +0100)]
Update l2 constaint in v3po.yang

Permit BVI interface to have IP address assigned

Change-Id: I86f39b1e07fa00f05328e293377e0b84c23ebe1a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix relative parent for test-api 23/3623/2
Maros Marsalek [Fri, 28 Oct 2016 15:20:27 +0000 (17:20 +0200)]
Fix relative parent for test-api

Change-Id: Iee03b1506302dd5a9a4d16e0c85d695fcccf7d03
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-274 Fix checkstyle license checks 09/3609/3
Maros Marsalek [Thu, 27 Oct 2016 12:55:07 +0000 (14:55 +0200)]
HONEYCOMB-274 Fix checkstyle license checks

Change-Id: I9a7783bf072b2e2396f0fa1a784bcb57adb689b4
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHoneycomb-73 Extensible initializers remove leftovers 93/3593/2
Maros Marsalek [Wed, 26 Oct 2016 10:20:14 +0000 (12:20 +0200)]
Honeycomb-73 Extensible initializers remove leftovers

Change-Id: Id610346e39585867290170bf09528ecf6e032ee4
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHoneycomb-73 Extensible initializers for samples 92/3592/2
Maros Marsalek [Wed, 26 Oct 2016 10:19:23 +0000 (12:19 +0200)]
Honeycomb-73 Extensible initializers for samples

Change-Id: I08f53a301cc147ce1e8cce8b3bd5c82e8f4b21fd
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHoneycomb-73 Extensible initializers for nsh 91/3591/2
Maros Marsalek [Wed, 26 Oct 2016 10:19:14 +0000 (12:19 +0200)]
Honeycomb-73 Extensible initializers for nsh

Change-Id: I019e4d1ac50d77c20b47c39e7eafee36cc04509b
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>