bgpcep.git
9 years agoBug-2226: RFC5886 - New objects parsers/seriazers 52/12252/8
Milos Fabian [Mon, 27 Oct 2014 09:37:16 +0000 (10:37 +0100)]
Bug-2226: RFC5886 - New objects parsers/seriazers

-Implementation of parsers and serializers for
new objects defined in RFC5886

-ref.: https://tools.ietf.org/html/rfc5886

Change-Id: I8c9c6038058f3dbdf19253c6284cd29619237359
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-2226: RFC5886 yang model 21/12221/17
Milos Fabian [Thu, 23 Oct 2014 14:58:18 +0000 (16:58 +0200)]
Bug-2226: RFC5886 yang model

reference: https://tools.ietf.org/html/rfc5886
   https://tools.ietf.org/html/draft-many-pce-pcep-bcp-00

- new objects:
- MONITORING
- PCC-REQ-ID
- PCE-ID
- PROC-TIME
- OVERLOAD
-extended messages
        -PCRep
        -PCReq
-new messages:
-PCMonRep
-PCMonReq (extended PCReq can be reused)

Change-Id: I7d340c4d05d6e8635a5539649ce5c9213ea6b4f8
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-2508: Switch PCEP topology provider to use pingpong-binding-data-broker 94/13594/1
Milos Fabian [Fri, 12 Dec 2014 16:17:57 +0000 (17:17 +0100)]
Bug-2508: Switch PCEP topology provider to use pingpong-binding-data-broker

-changed initial config file, pingpong-binding-data-broker instance is now injected as data-broker
-the change increases performance

Change-Id: Ib06b0d5e68926d648110e004960e46d5ee5dd707
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-2423: LSP Identifiers TLV in PCEP-SR PCRpt messsage 69/13369/1
Milos Fabian [Thu, 27 Nov 2014 08:51:27 +0000 (09:51 +0100)]
Bug-2423: LSP Identifiers TLV in PCEP-SR PCRpt messsage

-LSP Identifier TLV is not included in LSP object of PCRpt
message for PCEP segment routing

-since building of PCEP topology depends on LSP Identifier,
lets put fake LSP Identifier (use PLSP ID value)

Change-Id: Idb0ec249a11f343c6071e6bf286fa2cb6f91940f
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 06dd46a992e834d73e526f4a600a8aae4f88a0e0)

9 years agoBUG-1953 : adjust ISO system identifier 65/13265/4
Dana Kutenicsova [Mon, 1 Dec 2014 15:56:09 +0000 (16:56 +0100)]
BUG-1953 : adjust ISO system identifier

Change-Id: Ia71d4f2e07f21e1cb30c87cf7d4c3802b4d970f1
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "BUG-2255 : adjusted BGP configuration to use pingpong data broker."
Robert Varga [Mon, 1 Dec 2014 16:49:40 +0000 (16:49 +0000)]
Merge "BUG-2255 : adjusted BGP configuration to use pingpong data broker."

9 years agoMerge "BUG-2448 : added more defensive lookup to node & link attributes"
Robert Varga [Mon, 1 Dec 2014 16:48:57 +0000 (16:48 +0000)]
Merge "BUG-2448 : added more defensive lookup to node & link attributes"

9 years agoMore warnings down: 45/13245/2
Dana Kutenicsova [Mon, 1 Dec 2014 08:22:25 +0000 (09:22 +0100)]
More warnings down:
- remove empty statement
- add private constructor where needed
- log exception
- order modifiers
- duplicate string literals

Change-Id: I9456437fd66421dbb040f08f469b2a99851cce66
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoSwitch statements should end with a default case. 02/13202/1
Dana Kutenicsova [Fri, 28 Nov 2014 13:44:49 +0000 (14:44 +0100)]
Switch statements should end with a default case.

Change-Id: I04b67c4c8a0109a00867970a122a30bc26228b90
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoConstant names should comply with a naming convention. 00/13200/2
Dana Kutenicsova [Fri, 28 Nov 2014 12:52:48 +0000 (13:52 +0100)]
Constant names should comply with a naming convention.

Change-Id: Ia52c00bcb2c4aa8ffab978046fedf2ebd0234408
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-2448 : added more defensive lookup to node & link attributes 79/13179/1
Dana Kutenicsova [Fri, 28 Nov 2014 09:51:21 +0000 (10:51 +0100)]
BUG-2448 : added more defensive lookup to node & link attributes

Change-Id: I2feb75c1a178df0eeffe8e234072eafa3628bd6a
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "Bug-2436: PCEP segment-routing - take F and S flag into account"
Dana Kutenicsova [Wed, 26 Nov 2014 13:07:02 +0000 (13:07 +0000)]
Merge "Bug-2436: PCEP segment-routing - take F and S flag into account"

9 years agoBug-2436: PCEP segment-routing - take F and S flag into account 41/13141/2
Milos Fabian [Wed, 26 Nov 2014 10:32:46 +0000 (11:32 +0100)]
Bug-2436: PCEP segment-routing - take F and S flag into account

-if F flag is set, NAI value is ommited
-if S flag is set, SID value is ommited

Change-Id: Ia92680c77af0a6f8b1406de4723e9e9174479a4c
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-2418 PCEP session statistics RuntimeBean was not closed properly 17/13117/2
Milos Fabian [Tue, 25 Nov 2014 13:14:38 +0000 (14:14 +0100)]
Bug-2418 PCEP session statistics RuntimeBean was not closed properly

-RuntimeBean was not unregistered, when session was closed - causing NPE in netconf-state

Change-Id: I85cab707e4626fa0c22d02080eb90cc3be01ef7f
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBUG-2255 : adjusted BGP configuration to use pingpong data broker. 22/13122/2
Dana Kutenicsova [Tue, 25 Nov 2014 15:36:04 +0000 (16:36 +0100)]
BUG-2255 : adjusted BGP configuration to use pingpong data broker.

Change-Id: I455b9ed3d655675585c6eee48e4fa934bea289a1
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-1953: Fix bgpcep tests 21/13121/1
Milos Fabian [Tue, 25 Nov 2014 14:30:08 +0000 (15:30 +0100)]
Bug-1953: Fix bgpcep tests

-ipv4/6 prefixes must contain mask

Change-Id: I93c4ce30e98f5a0cd5fa8ba86a39129ee837d800
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-865: modified BGPCEP config tests 72/13072/2
Milos Fabian [Mon, 24 Nov 2014 13:48:59 +0000 (14:48 +0100)]
Bug-865: modified BGPCEP config tests

-edited config tests to reflect changes in binding-broker config module
https://git.opendaylight.org/gerrit/#/c/13018/

Change-Id: Ibdf28b9df4908500e178453b727f35c7e9b93243
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoWipe operational state 55/12955/4
Robert Varga [Wed, 19 Nov 2014 17:12:07 +0000 (18:12 +0100)]
Wipe operational state

Clustered data store may end up persisting our data, which means that if
an instance comes up after a crash, we may have stale data. Rather than
failing to come up, lets just wipe whatever was there.

Change-Id: I3b43d9bf692f083142e44fe8b588d1a92f81e7a2
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Use TCPMD5-supplied artifacts"
Dana Kutenicsova [Fri, 21 Nov 2014 21:04:54 +0000 (21:04 +0000)]
Merge "Use TCPMD5-supplied artifacts"

9 years agoUse TCPMD5-supplied artifacts 22/13022/8
Robert Varga [Thu, 20 Nov 2014 17:56:15 +0000 (18:56 +0100)]
Use TCPMD5-supplied artifacts

Rather than declaring the versions by hand we just import whatever is
exported.

Change-Id: I2c08b7dc7ef7350f25ab26821d207570be6d013b
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoRemove unneeded model declarations 21/13021/3
Robert Varga [Thu, 20 Nov 2014 17:54:51 +0000 (18:54 +0100)]
Remove unneeded model declarations

the yangtools artifacts import already handles these, so no need to be
repetetive.

Change-Id: Ie9a2c9630e6c1ea41535679860946028b130e95b
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBUG-2157: Fix missing programming models 43/13043/2
Robert Varga [Fri, 21 Nov 2014 10:03:55 +0000 (11:03 +0100)]
BUG-2157: Fix missing programming models

This fixes the hanging tests, since the RPC registration process
requires the models to be present.

Change-Id: I2f986821a610e2664305c0f49f5ce19e7ba660b8
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Synchronize close methods in RIB and topology provider to avoid closing confli...
Robert Varga [Wed, 19 Nov 2014 16:44:53 +0000 (16:44 +0000)]
Merge "Synchronize close methods in RIB and topology provider to avoid closing conflicts."

9 years agoSynchronize close methods in RIB and topology provider to avoid closing conflicts. 17/12917/2
Dana Kutenicsova [Tue, 18 Nov 2014 15:21:35 +0000 (16:21 +0100)]
Synchronize close methods in RIB and topology provider to avoid closing conflicts.

Change-Id: I758e55c932500189aead22dd858af140a93d3667
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "BUG-2383: lower default candidate allocation"
Robert Varga [Tue, 18 Nov 2014 17:56:17 +0000 (17:56 +0000)]
Merge "BUG-2383: lower default candidate allocation"

9 years agoMerge "BUG-2283 : workaround in programming-impl"
Robert Varga [Tue, 18 Nov 2014 17:55:59 +0000 (17:55 +0000)]
Merge "BUG-2283 : workaround in programming-impl"

9 years agoBUG-2383: lower default candidate allocation 22/12922/1
Robert Varga [Sun, 16 Nov 2014 13:58:33 +0000 (14:58 +0100)]
BUG-2383: lower default candidate allocation

Rather than allocating the default of 16 entries, we force the HashMap
to allocate a lower number of entries. While this is not a complete
solution, it lowers the memory overhead significantly.

Change-Id: Ic3afe36381930d567ee7523856b3d3959c013459
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 547bd6ec0a7d0147572dc355ab186571bf42e8b7)

9 years agoBUG-2283 : workaround in programming-impl 15/12915/2
Dana Kutenicsova [Tue, 18 Nov 2014 14:37:39 +0000 (15:37 +0100)]
BUG-2283 : workaround in programming-impl

Change-Id: Ibff71c25a5106e1cff96feb8a1429caa54735825
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug 2398: AbstractTopologyBuilder() to put() with createParents. 13/12913/1
Vratko Polak [Tue, 18 Nov 2014 14:18:58 +0000 (15:18 +0100)]
Bug 2398: AbstractTopologyBuilder() to put() with createParents.

Change-Id: I96bd59ce75a09ddcde6460327a131b46b61744d9
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
9 years agoBUG-2385: introduce a shorter version of identifierForKey() 22/12822/2
Robert Varga [Thu, 13 Nov 2014 18:01:30 +0000 (19:01 +0100)]
BUG-2385: introduce a shorter version of identifierForKey()

This takes advantage of the fact that the basePath is passed down to the
constructor -- so the subclasses can actually do a better job at
finiding the true base path.

Change-Id: I965e27ca6599bc606d8447acf7e6f2ddc1370ac4
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Read-only transactions were not being closed"
Robert Varga [Fri, 14 Nov 2014 17:38:22 +0000 (17:38 +0000)]
Merge "Read-only transactions were not being closed"

9 years agoRead-only transactions were not being closed 45/12845/1
Robert Varga [Thu, 6 Nov 2014 15:40:24 +0000 (16:40 +0100)]
Read-only transactions were not being closed

We have failed to close read-only transactions, which can lead to resource
starvation.

Change-Id: I62dbf6b6409a65f279b01c3bb5b2238ffa6febc8
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 16cdb27ad01eb27950aba2c6fd5e4b03881a623a)

9 years agoUse config-artifacts for dependencies 24/12824/1
Robert Varga [Thu, 13 Nov 2014 18:27:48 +0000 (19:27 +0100)]
Use config-artifacts for dependencies

Rather than manually pulling configuration dependencies, use the
artifacts provided.

Change-Id: Ie992c7fd771d9d5051ace3319607285d9be93729
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoUse yangtools-artifacts for dependencies. 23/12823/1
Robert Varga [Thu, 13 Nov 2014 18:23:46 +0000 (19:23 +0100)]
Use yangtools-artifacts for dependencies.

Rather than relying on manual dependencies, let's just import the
artifacts published by yangtools.

Change-Id: I9289d3982aca2a8eb6c5265cf2999bec133a653f
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoFixed ordering of configuration files in features.xml 06/12806/1
Dana Kutenicsova [Thu, 13 Nov 2014 11:37:22 +0000 (12:37 +0100)]
Fixed ordering of configuration files in features.xml

Change-Id: I4d09667dad74a31c26fe52c24d85939bf400e440
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "BUG-731: last warnings fixed"
Robert Varga [Tue, 11 Nov 2014 15:16:15 +0000 (15:16 +0000)]
Merge "BUG-731: last warnings fixed"

9 years agoBUG-731: last warnings fixed 78/12678/3
Dana Kutenicsova [Mon, 10 Nov 2014 15:37:46 +0000 (16:37 +0100)]
BUG-731: last warnings fixed

Change-Id: I649141d1c6209a2774a3dda2f3d6b3ab27217888
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "Added forgotten MAX_MSG_PER_READ option to BGP."
Robert Varga [Tue, 11 Nov 2014 10:49:42 +0000 (10:49 +0000)]
Merge "Added forgotten MAX_MSG_PER_READ option to BGP."

9 years agoAdded forgotten MAX_MSG_PER_READ option to BGP. 90/12690/1
Dana Kutenicsova [Mon, 10 Nov 2014 16:58:25 +0000 (17:58 +0100)]
Added forgotten MAX_MSG_PER_READ option to BGP.

Change-Id: I690f2043a4c8a4d4ee9c48bf64c8841b1a704b16
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-2299: allow PCEP extensions to be reconfigured 89/12489/2
Robert Varga [Mon, 3 Nov 2014 14:06:56 +0000 (15:06 +0100)]
BUG-2299: allow PCEP extensions to be reconfigured

The trigger here is a change in the extensions cause the corresponding
context to be re-created from scratch, which leads to the topology
manager to being re-created. This patch implements instance reuse by
adding proper activator hooks.

Change-Id: I5f114b81ceeb26a3943afc4bd2f0c34b678ff029
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-2109 : clear BGP session after it was already initialized"
Robert Varga [Mon, 10 Nov 2014 09:33:17 +0000 (09:33 +0000)]
Merge "BUG-2109 : clear BGP session after it was already initialized"

9 years agoBUG-731 : more warnings down 61/12661/2
Dana Kutenicsova [Fri, 7 Nov 2014 15:24:17 +0000 (16:24 +0100)]
BUG-731 : more warnings down

Change-Id: I83598fdb04d4357d3efc6ed26c1d5beac70686c1
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoSplit Error identifiers to separate classes. 62/12662/1
Dana Kutenicsova [Sat, 8 Nov 2014 20:28:30 +0000 (21:28 +0100)]
Split Error identifiers to separate classes.

Change-Id: I1b74e56c3fb79d4eb375a0da7e1e81fc00b52797
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-2109 : clear BGP session after it was already initialized 77/12577/2
Dana Kutenicsova [Thu, 6 Nov 2014 13:24:20 +0000 (14:24 +0100)]
BUG-2109 : clear BGP session after it was already initialized

Change-Id: Ib70a725b948892a2a887a941bdcb4e8dcfdb80eb
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoFix for NPE in OSPF, when forwarding address is not set. 63/12563/1
Dana Kutenicsova [Wed, 5 Nov 2014 10:39:22 +0000 (11:39 +0100)]
Fix for NPE in OSPF, when forwarding address is not set.

Change-Id: Iff310eee0a5c4c9a34971b6cf5d958d8ed5004e2
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "Removed obsolete methods from Ipv4/Ipv6Util."
Robert Varga [Thu, 6 Nov 2014 10:32:56 +0000 (10:32 +0000)]
Merge "Removed obsolete methods from Ipv4/Ipv6Util."

9 years agoRemoved obsolete methods from Ipv4/Ipv6Util. 23/12523/2
Dana Kutenicsova [Wed, 5 Nov 2014 14:50:35 +0000 (15:50 +0100)]
Removed obsolete methods from Ipv4/Ipv6Util.

Change-Id: I79a7d82840a989418dc9216b522b8d3fdc4d77cd
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-731: Fixed issue in NodeChangedListener 19/12519/2
Milos Fabian [Wed, 5 Nov 2014 09:13:27 +0000 (10:13 +0100)]
Bug-731: Fixed issue in NodeChangedListener

Change-Id: I5f4aec033d4bfd260ae0a3c30cf48e321226b2d3
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoMerge "BUG-731 : removed more warnings"
Robert Varga [Wed, 5 Nov 2014 09:44:57 +0000 (09:44 +0000)]
Merge "BUG-731 : removed more warnings"

9 years agoRemoved obsolete methods from ByteArray. 93/12493/1
Dana Kutenicsova [Tue, 4 Nov 2014 16:35:38 +0000 (17:35 +0100)]
Removed obsolete methods from ByteArray.

- by switching to ByteBuf, many of the methods in ByteArray became obsolete,
they were removed, fixing a few sonar warnings along the way

Change-Id: I6eb30c2b8f62c18b911555ec3c6ae13a6e7ac4e7
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : removed more warnings 62/12462/2
Dana Kutenicsova [Mon, 3 Nov 2014 16:10:58 +0000 (17:10 +0100)]
BUG-731 : removed more warnings

Change-Id: I82b253f3e11e8155ea7dae61ecd47906565cfcb7
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "Moved config files to modules where they belong."
Robert Varga [Mon, 3 Nov 2014 14:13:05 +0000 (14:13 +0000)]
Merge "Moved config files to modules where they belong."

9 years agoMoved config files to modules where they belong. 52/12452/1
Dana Kutenicsova [Mon, 3 Nov 2014 08:59:56 +0000 (09:59 +0100)]
Moved config files to modules where they belong.

Change-Id: I8396f4ce6daac8a4d6eb6c79283b94757f366368
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731: reduced complexity 99/12399/2
Dana Kutenicsova [Fri, 31 Oct 2014 13:39:40 +0000 (14:39 +0100)]
BUG-731: reduced complexity

Change-Id: I9573e625ab6eb050b7ad33325cfd7a165944105a
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "Added documentation to serializeObject method."
Robert Varga [Sat, 1 Nov 2014 07:50:49 +0000 (07:50 +0000)]
Merge "Added documentation to serializeObject method."

9 years agoMemory optimizations for AS-Path and Origin attributes 62/12162/6
Dana Kutenicsova [Wed, 22 Oct 2014 14:25:17 +0000 (16:25 +0200)]
Memory optimizations for AS-Path and Origin attributes

- AS-Path: minimized empty lists
- Origin: reusing Origin container

Change-Id: I424169873ad1bfae0e3cd928bf285f59c70141ec
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoAdded documentation to serializeObject method. 85/12285/2
Dana Kutenicsova [Tue, 28 Oct 2014 12:26:57 +0000 (13:26 +0100)]
Added documentation to serializeObject method.

- to be more clear that there is a check for non-null Object argument

Change-Id: I71c1f723281f7ae02501b40dbcf8c533af090063
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-2064: Implementation of RFC5492 Error handling. 38/12138/5
Milos Fabian [Wed, 22 Oct 2014 08:31:14 +0000 (10:31 +0200)]
Bug-2064: Implementation of RFC5492 Error handling.

-Unsupported Capability - subcode 7 for Open message error.
-Unsupported Capability MAY be used by BGP speaker to complain that peer does not support required capability.
The NOTIFICATION message MUST contain list of such capabilities in Data field.
-Unsupported Capability MUST NOT be used when a BGP speaker receives unrecognized or unsupported capability.
Such capabilities MUST be ignored.

The BGP speaker is prepared to receive
an OPEN message that contains one or multiple Capabilities Optional
Parameters, each of which contains one or more capabilities TLVs.

Change-Id: I09f12011d90dc77a6a4cc4b3049ff7eba71dc443
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoMerge "BUG-2182 : included data-change-counter in feature file"
Robert Varga [Tue, 28 Oct 2014 22:59:10 +0000 (22:59 +0000)]
Merge "BUG-2182 : included data-change-counter in feature file"

9 years agoUpdated dependencies in pom. 30/12230/2
Dana Kutenicsova [Fri, 24 Oct 2014 13:06:34 +0000 (15:06 +0200)]
Updated dependencies in pom.

Change-Id: I7070ba395f5738df9bcf80a21ac6a36a776688b6
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : more sonar warnings fixed 18/12218/2
Dana Kutenicsova [Fri, 24 Oct 2014 09:57:01 +0000 (11:57 +0200)]
BUG-731 : more sonar warnings fixed

Change-Id: I0fa0936081a3ab371aedc1da9cb645c48ca8e269
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-2182 : included data-change-counter in feature file 73/12073/4
Dana Kutenicsova [Tue, 21 Oct 2014 07:56:46 +0000 (09:56 +0200)]
BUG-2182 : included data-change-counter in feature file

- rework feature file

Change-Id: Ic99fc9982834d0c4cd5543d9d85f02991a336bd4
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-2234: Propagate PCEP errors via RPC 84/12184/2
Milos Fabian [Thu, 23 Oct 2014 07:03:59 +0000 (09:03 +0200)]
Bug-2234: Propagate PCEP errors via RPC

-errors are added also in case the error was detected before request was sent

-add-lsp:
-"SYMBOLIC-PATH-NAME in use" if such LSP already exists
-"Capability not supported" if PCE does not have initiate capability
-update-lsp:
-"unknown PLSP-ID" if such LSP does not exist
-remove-lsp:
-"unknown PLSP-ID" if such LSP does not exist

Change-Id: Icb7096ef4bcfc5383751993fcc588168895a1ca6
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoMerge "BUG-731 : fixed pcep sonar warnings"
Robert Varga [Thu, 23 Oct 2014 09:18:45 +0000 (09:18 +0000)]
Merge "BUG-731 : fixed pcep sonar warnings"

9 years agoMerge "BUG-2109 : remove also sessionId when bgp session is closed"
Robert Varga [Thu, 23 Oct 2014 09:11:17 +0000 (09:11 +0000)]
Merge "BUG-2109 : remove also sessionId when bgp session is closed"

9 years agoForbid user to sent add-lsp if the instantiation capability is missing 60/12160/3
Dana Kutenicsova [Wed, 22 Oct 2014 13:51:36 +0000 (15:51 +0200)]
Forbid user to sent add-lsp if the instantiation capability is missing

Change-Id: I91eeb6793fcfeabd6731d6dd9d59c36d4843f9be
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : fixed pcep sonar warnings 58/12158/1
Dana Kutenicsova [Wed, 22 Oct 2014 13:24:26 +0000 (15:24 +0200)]
BUG-731 : fixed pcep sonar warnings

Change-Id: I2cb38fb5b6546d55c0c08b01cd428eb35646747e
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-2116: Added CEASE error code subcodes as defined in RFC4486. 47/12147/1
Milos Fabian [Wed, 22 Oct 2014 11:36:25 +0000 (13:36 +0200)]
Bug-2116: Added CEASE error code subcodes as defined in RFC4486.

Change-Id: I3eb2c6c88629581cdab16e829f9387b3aebef503
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBUG-2109 : remove also sessionId when bgp session is closed 61/12161/1
Dana Kutenicsova [Tue, 21 Oct 2014 14:38:13 +0000 (16:38 +0200)]
BUG-2109 : remove also sessionId when bgp session is closed

Change-Id: I8f086b35ac3f75d9da04de37c0d88e465822077b
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : removed more sonar warnings 71/11971/4
Dana Kutenicsova [Tue, 21 Oct 2014 09:19:31 +0000 (11:19 +0200)]
BUG-731 : removed more sonar warnings

Change-Id: I74bd1da4ea9739d1c661cc13901c1bbf6b153b8d
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-2080: BGP statistics. 18/12018/5
Milos Fabian [Thu, 9 Oct 2014 07:09:00 +0000 (09:09 +0200)]
Bug-2080: BGP statistics.

-per BGP peer statistics, related with bgp-peer config module

-peer and speaker preferences
-proposed holdtimer-value, BGP ID, AS number, Ip address, port, 4-byte AS capa., advertized routing tables
-session's holdtimer value and keep-alive
-received/sent BGP messages statistics (last timestamp, count)
-all msgs, keep-alive msgs, update msgs, notification msgs (error code and subcode)
-number of time the session was established
-routes count per routing table
-op. reset statistics
-op. reset session

-statistics reachable via Netconf, Restconf - as operational data and JMX (JConsole, VisulaVM, Jolokia) - as Runtime Bean.

Change-Id: I797535744176eea61d538dfa00d23cc6bfdd3da2
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug 2204: pcc-mock now allows zero LSPs per PCC. 76/12076/1
Vratko Polak [Thu, 16 Oct 2014 13:41:25 +0000 (15:41 +0200)]
Bug 2204: pcc-mock now allows zero LSPs per PCC.

Also, 127.0.0.1 is new default remote address,
and condition on number of command line arguments is removed.

Change-Id: I78491a52d60df954b35a2689a5746bcb59eb2ebd
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit b9cf0a787e53767d7093e03250c652df3228ade2)

9 years agoBug-2171: pcc-mock - logging level configuration 74/12074/1
Milos Fabian [Fri, 10 Oct 2014 08:42:02 +0000 (10:42 +0200)]
Bug-2171: pcc-mock - logging level configuration

+ Default logging level is INFO
+ New optional command line parametter --log-level <LEVEL>
+ Varied level of log statement

-other minor fixes:
+ SymbolicPathName contains ingress IP address too.
     + Fixed issue with ByteBuffer sometimes exceeding String size.

Change-Id: Id1ded1c75d2dfc173d88c8372d7ce7e621a19aab
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 3498eac61c0ce5792631be804de6cf238c07585c)

9 years agoBug-2167: Enable pcc-mock to be bindable to differnet source addresses. 54/12054/1
Milos Fabian [Thu, 9 Oct 2014 08:58:42 +0000 (10:58 +0200)]
Bug-2167: Enable pcc-mock to be bindable to differnet source addresses.

Change-Id: I72fdb8af053dc9bd6b6cb2d2c4a97173266b3916
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 132ccacc1dbe0cfaeb83de78f1db18e6dc42dee0)

9 years agoBUG-2201 : fixed Ipv4/Ipv6 AdjRibsIn to use correct class 03/12003/1
Dana Kutenicsova [Thu, 16 Oct 2014 11:17:26 +0000 (13:17 +0200)]
BUG-2201 : fixed Ipv4/Ipv6 AdjRibsIn to use correct class

Change-Id: Ic7b274857ee55aa7b46db0e2e114d271e33225d0
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBug-2081: PCEP statistics 67/11767/7
Milos Fabian [Mon, 6 Oct 2014 07:19:01 +0000 (09:19 +0200)]
Bug-2081: PCEP statistics

-PCEP session statistics:
-received/sent messages count
-received/sent error msgs count
-last sent msg timestamp
-last received/sent error type/value
-unknown msgs received count
-local and remote peer preferences
-keepalive, deadtimer, ip address, session-id
-PCEP session listener statistics
-remote peer stateful preferences
-session duration
-delegated lsps count
-synchronization status
-last received report msg timestamp
-received report msg count
-sent init/update msg count
-request time measurement
-tear down session op.
-reset statistics op.

-statistics are related to pcep-topology-provider config module
-reachable via JMX, NETCONF, Restconf as operational data

Change-Id: I40fd658028e386040fd6c90d805a5724aff6bddd
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBUG-731 : removed magic numbers by refactoring Extended Communities. 50/11950/3
Dana Kutenicsova [Tue, 14 Oct 2014 13:22:45 +0000 (15:22 +0200)]
BUG-731 : removed magic numbers by refactoring Extended Communities.

Change-Id: I4907cec86eed1151f2aa61e120cf78a9a4e55091
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "BUG-731 : refactored stateful listeners"
Robert Varga [Fri, 10 Oct 2014 23:52:30 +0000 (23:52 +0000)]
Merge "BUG-731 : refactored stateful listeners"

9 years agoMerge "BUG-2109 : cleaned BGP sessions on session closed."
Robert Varga [Fri, 10 Oct 2014 23:49:29 +0000 (23:49 +0000)]
Merge "BUG-2109 : cleaned BGP sessions on session closed."

9 years agoMerge "BUG-731 : removed critical sonar warnings"
Robert Varga [Fri, 10 Oct 2014 23:47:44 +0000 (23:47 +0000)]
Merge "BUG-731 : removed critical sonar warnings"

9 years agoReplaced reference from deprecated junit.framework.Assert to org.junit.Assert 86/11886/1
Dana Kutenicsova [Fri, 10 Oct 2014 14:20:06 +0000 (16:20 +0200)]
Replaced reference from deprecated junit.framework.Assert to org.junit.Assert

Change-Id: I9ffe4b258ccd5200d3c3a27456fb5bf2a61d7972
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : refactored stateful listeners 83/11883/3
Dana Kutenicsova [Fri, 10 Oct 2014 12:53:35 +0000 (14:53 +0200)]
BUG-731 : refactored stateful listeners

- moved nullchecks for input LSP to separate method (should fix most complexity warnings)
- moved MBB procedure to separate method

Change-Id: Icf791b41dedb408340fe4cbe2e439bceab1c1b30
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-731 : removed critical sonar warnings 60/11760/2
Dana Kutenicsova [Fri, 10 Oct 2014 08:40:16 +0000 (10:40 +0200)]
BUG-731 : removed critical sonar warnings

Change-Id: Ic213c01c1c2ecbab3e4cd7cb7a6167713fe94a8c
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoBUG-2109 : cleaned BGP sessions on session closed. 22/11722/4
Dana Kutenicsova [Wed, 1 Oct 2014 10:54:32 +0000 (12:54 +0200)]
BUG-2109 : cleaned BGP sessions on session closed.

Added proper close from BGP peer. Negotiation failed method now called from both sub and superclass.

Change-Id: I83e922df826c7fbb9130ca637d2dfe99d3e93a27
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoIncrementing versions by 0.1.0 for post-helium master branch 13/11813/2
Dana Kutenicsova [Thu, 9 Oct 2014 15:27:58 +0000 (17:27 +0200)]
Incrementing versions by 0.1.0 for post-helium master branch

Change-Id: Iac3f18084019eb0607f80a3fd60f3f985c77762a
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
9 years agoMerge "BUG-2115 : added zero subcode to BGP CEASE Notify message to avoid NPE"
Robert Varga [Thu, 2 Oct 2014 16:30:16 +0000 (16:30 +0000)]
Merge "BUG-2115 : added zero subcode to BGP CEASE Notify message to avoid NPE"

9 years agoBUG-2115 : added zero subcode to BGP CEASE Notify message to avoid NPE 98/11698/1
Dana Kutenicsova [Tue, 30 Sep 2014 15:51:03 +0000 (17:51 +0200)]
BUG-2115 : added zero subcode to BGP CEASE Notify message to avoid NPE

Change-Id: I6102d73e9bd3ff86f2238f1af249cee3094711b2
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
(cherry picked from commit 8be8ae9818e58e91581926646b05f70b7d070661)

9 years agoBUG-2082: fix TCPMD5 dependency 97/11697/1
Robert Varga [Thu, 25 Sep 2014 12:10:02 +0000 (14:10 +0200)]
BUG-2082: fix TCPMD5 dependency

This installs proper reference to TPCMD5 feature, as provided by
companion patch (*https://git.opendaylight.org/gerrit/#/c/11575/).

Change-Id: I9c475fa2fb5ab58f1e69fdf000866fe345ff4e35
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 1a4390f2fad7c349f4416421ef3cf1feb6fcff66)

9 years agoBUG-1931: do not override junit version 76/11276/1
Robert Varga [Wed, 17 Sep 2014 08:55:39 +0000 (10:55 +0200)]
BUG-1931: do not override junit version

Change-Id: I400f6172d2ff561ef8d1db96dfb2c8fe92e74b8a
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Bug 1924: harmonize commons-codec versions in features.xml"
Robert Varga [Wed, 17 Sep 2014 08:30:52 +0000 (08:30 +0000)]
Merge "Bug 1924: harmonize commons-codec versions in features.xml"

9 years agoMerge "Bug 1921: Remove override of guava version in features/"
Robert Varga [Wed, 17 Sep 2014 08:30:05 +0000 (08:30 +0000)]
Merge "Bug 1921: Remove override of guava version in features/"

9 years agoBug 1924: harmonize commons-codec versions in features.xml 64/11264/1
Ed Warnicke [Wed, 17 Sep 2014 04:01:49 +0000 (23:01 -0500)]
Bug 1924: harmonize commons-codec versions in features.xml

Change-Id: I033fc658973491317401fd17ed4d684af1f7c2ed
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoBug 1921: Remove override of guava version in features/ 60/11260/1
Ed Warnicke [Wed, 17 Sep 2014 01:38:10 +0000 (20:38 -0500)]
Bug 1921: Remove override of guava version in features/

Change-Id: I424334140f43c5020f37f1c42004c4f312ad12b4
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoBump versions for Lithium release cycle 31/11231/1
Robert Varga [Tue, 16 Sep 2014 12:41:15 +0000 (14:41 +0200)]
Bump versions for Lithium release cycle

New version is 0.4.0, the 0.3.x is reserved for Helium release train.

Change-Id: I102f04ee12c7f6dc32046ce61861a141af13ed73
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Bug-730: Add PCEPDispatcher test."
Dana Kutenicsova [Thu, 11 Sep 2014 13:17:38 +0000 (13:17 +0000)]
Merge "Bug-730: Add PCEPDispatcher test."

9 years agoMerge "Bug-730: Add GracefulCapabilityHandler test."
Dana Kutenicsova [Thu, 11 Sep 2014 13:04:14 +0000 (13:04 +0000)]
Merge "Bug-730: Add GracefulCapabilityHandler test."

9 years agoMerge "Bug-1809: Fix GracefulCapabilityHandler."
Dana Kutenicsova [Thu, 11 Sep 2014 12:44:26 +0000 (12:44 +0000)]
Merge "Bug-1809: Fix GracefulCapabilityHandler."

9 years agoBug-730: Add PCEPDispatcher test. 44/11044/2
Milos Fabian [Thu, 11 Sep 2014 11:55:12 +0000 (13:55 +0200)]
Bug-730: Add PCEPDispatcher test.

Change-Id: I182c25e8c958a143014d00d7e80b2d7267550884
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBug-730: Add GracefulCapabilityHandler test. 41/11041/2
Milos Fabian [Thu, 11 Sep 2014 11:58:34 +0000 (13:58 +0200)]
Bug-730: Add GracefulCapabilityHandler test.

Change-Id: I8f6aedf08f2e13d37a2de2738efdf9f87190151b
Signed-off-by: Milos Fabian <milfabia@cisco.com>
9 years agoBUG-730 : added null checks to tests to increase branch coverage 35/11035/2
Dana Kutenicsova [Thu, 11 Sep 2014 11:50:45 +0000 (13:50 +0200)]
BUG-730 : added null checks to tests to increase branch coverage

Change-Id: I2dc01d2c3cedc8af32f85cfc482c4466bdc6f597
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>