bgpcep.git
7 years agoOpenDaylight Beryllium-SR4 release release/beryllium-sr4
Anil Belur [Fri, 21 Oct 2016 03:52:56 +0000 (13:52 +1000)]
OpenDaylight Beryllium-SR4 release

Change-Id: Ib74e19355cf584488a9b7e05c090087fb9a4edf0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoBUG-6810: Fix intermintent Be BmpMonitorImplTest failure 85/46185/1
Claudio D. Gasparini [Mon, 26 Sep 2016 11:34:32 +0000 (13:34 +0200)]
BUG-6810: Fix intermintent Be BmpMonitorImplTest failure

Fix intermintent Be BmpMonitorImplTest failure

Change-Id: I649b941276778d005c2de0c5aa016e087ba58f0b
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
7 years agoBug 6739 - Throw exception while Installing odl-bgpcep-bgp-all feature 79/45779/1
Geng Xingyuan [Mon, 19 Sep 2016 04:56:39 +0000 (12:56 +0800)]
Bug 6739 - Throw exception while Installing odl-bgpcep-bgp-all feature

Change-Id: Iccb5624124bd7e08fb1715129f0bf5e552b6f25a
Signed-off-by: Geng Xingyuan <geng.xingyuan@zte.com.cn>
7 years agoBug 6585: BGP ChannelOutputLimiter waits forever 90/45390/2
Milos Fabian [Wed, 31 Aug 2016 15:40:49 +0000 (17:40 +0200)]
Bug 6585: BGP ChannelOutputLimiter waits forever

After a while (when an output buffer reach upper bound),
BGP's ChannelOutputLimiter handler get stacked waiting for the channel to become writable again.
The writability change never happen, however socket flush is invoked,
so the session peer dies on holdtimer expiration.

Looks like calling #flush when writability changes to non-writable has no effect.
Invoking #flush in #ensureWritable makes the expected action.

Change-Id: I95681d87c30aff82ec360a2d13fc01fe35873507
Signed-off-by: Milos Fabian <milfabia@cisco.com>
7 years agoBug-6662: On connection reset by peer, sometimes re-connection attempt stops after... 19/45519/1
Ajay [Tue, 13 Sep 2016 02:16:23 +0000 (02:16 +0000)]
Bug-6662: On connection reset by peer, sometimes re-connection attempt stops after HoldTimer expired error

This issue happens when the neighbor config is removed from peer router while retaining the BGP router config.
Under this scenario, since BGP router config is still present, router is listening on BGP port. So when ODL
tries to connect, the connection succeeds. However the BGP negotiation fails as neighbor config has been removed
from router.

BGPReconnectPromise.ClosedChannelHandler#channelInactive triggers the reconnect, but the actual connection
retries as per the connection stragegy are done from BGPProtocolSessionPromise.BootstrapConnectListener#operationComplete

In failure scenario, since connection succeeds but negotiation fails, failure is not detected in BGPProtocolSessionPromise.BootstrapConnectListener#operationComplete
and so no reconnection attempts are made.

When negotiation fails, AbstractBGPSessionNegotiator#negotiationFailedCloseChannel is called, which causes BGPReconnectPromise.ClosedChannelHandler#channelInactive
to get called. Fix involves detecting negotiation failure here, and calling BGPProtocolSessionPromise#reconnect.

The scheduled job in AbstractBGPSessionNegotiator to detect hold-timer expiry during negotiation is also being cancelled
from AbstractBGPSessionNegotiator#negotiationFailedCloseChannel as the job is not needed when channel is closed.

Change-Id: Ica4add08bc5e9e44f1321d139a56cf9157cfdd69
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBug 6568 - Termination Point Type is never set in BGP-LS topology 02/44902/1
Milos Fabian [Mon, 29 Aug 2016 12:41:04 +0000 (14:41 +0200)]
Bug 6568 - Termination Point Type is never set in BGP-LS topology

Change-Id: Ic7695b821f34c93826b8cde78921122222725e65
Signed-off-by: Milos Fabian <milfabia@cisco.com>
7 years agoBug-6507: MalformedObjectNameException while configuring OpenConfig BGP IPv6 neighbor 39/44639/3
Ajay [Thu, 25 Aug 2016 03:40:46 +0000 (03:40 +0000)]
Bug-6507: MalformedObjectNameException while configuring OpenConfig BGP IPv6 neighbor
- Since colon is not a valid character for MBean key, replace colon in
  IPv6 neighbor address with dash while creating BGP Peer module name
- Convert neighbor IPv6 address and key which is derieved from it to
  to normalized notation (full-form and leading 0s removed) to match with
  similar conversion for BGP Peer module done in BGPPeerModule#getNormalizedHost

Change-Id: I440b5c81ae2cd4ee042c2fc5c5d30e4846ce8c4c
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBug-5922: inbound IPv6 connection fails if address has zero groups in it 38/44638/1
Ajay [Thu, 25 Aug 2016 03:10:34 +0000 (03:10 +0000)]
Bug-5922: inbound IPv6 connection fails if address has zero groups in it
- Convert the remote IPv6 address to normalized notation (full-form and leading 0s removed)
  so that comparision with configured BGP Peer address works
- BGP Peer address is converted to this form in BGPPeerModule#getNormalizedHost

Change-Id: I9ce0b5a925a0599e7cca52adf2ec2f2a331026c5
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBug-6242: PCRpt received with bandwidth reoptimization object leads to loop causing OOM 35/42435/2
Ajay [Mon, 25 Jul 2016 04:42:09 +0000 (04:42 +0000)]
Bug-6242: PCRpt received with bandwidth reoptimization object leads to loop causing OOM
- added bandwidth reoptimization object to the list of possible objects in PCRpt message
- gracefully handle condition where unexpected object is present in received message
- updated unit-tests

Change-Id: I9b4767be8522f62f5157369cde97a84013b3a352
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBUG-6330: Fix race condition when reinstalling App Peer 54/43254/2
Claudio D. Gasparini [Fri, 5 Aug 2016 10:12:21 +0000 (12:12 +0200)]
BUG-6330: Fix race condition when reinstalling App Peer

Race condition produced fater reinstall Application Peer
with some existant routes.
Fix by register EffectiveRibIn listener after creation of
AdjribIn.

Change-Id: I39bf41e938cc6994f4e70bb4a912e6f9ce061e20
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
7 years agoBug-6342: Link-state topology takes long time to get updated 46/43346/2
Ajay [Mon, 8 Aug 2016 18:25:42 +0000 (18:25 +0000)]
Bug-6342: Link-state topology takes long time to get updated
- When large number of prefixes are present for node, repeated re-writing of node causes slowness
- Avoid writing the entire node again when prefix or termination-point information for that node changes
- Just write the modified information in such cases

Change-Id: Id38b6b37f3171677798aaccd6f37376f355dbc66
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBumping versions by 0.0.1 for next dev cycle 59/43159/1
Thanh Ha [Thu, 4 Aug 2016 22:21:33 +0000 (18:21 -0400)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: If0ae07d8b8f7a1aa9ee065ca364388fa8b362f52
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRevert "BUG-5742: Race condition when creating Application Peer on clustering" 37/42737/1
Milos Fabian [Thu, 28 Jul 2016 19:14:39 +0000 (21:14 +0200)]
Revert "BUG-5742: Race condition when creating Application Peer on clustering"

This reverts commit b07d1c31f6ed622770cb8cc28658ab8f56a81102.

Change-Id: Iab27b13ff9874a59ae5e4e5c2b95153987db1419
Signed-off-by: Milos Fabian <milfabia@cisco.com>
7 years agoBug-6264: Beryllium SR3 Build Unstable 06/42506/1
Ajay [Mon, 25 Jul 2016 21:13:12 +0000 (21:13 +0000)]
Bug-6264: Beryllium SR3 Build Unstable
- when waiting for expected number of messages, try every 50 msecs till a max of 10 secs

Change-Id: Id26a3e61756cce94a1a82e3a05caef5d344fd14c
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBUG-6120: Fix intermitent test fail 88/42288/2
Claudio [Fri, 22 Jul 2016 07:24:50 +0000 (09:24 +0200)]
BUG-6120: Fix intermitent test fail

Improve test to wait for at least 10 seconds

Change-Id: I50cde477f374069e577ee930ca3193ca16840a75
Signed-off-by: Claudio <cgaspari@cisco.com>
7 years agoBUG-5742: Race condition when creating Application Peer on clustering 95/42295/1
Claudio [Thu, 21 Jul 2016 13:14:13 +0000 (15:14 +0200)]
BUG-5742: Race condition when creating Application Peer on clustering

Race condition when creating Application Peer on
a 3 node clustering enviroment.
Fix by use a uninque transaction chain on App Peer.

Change-Id: If6d3fbcb3c4e1e29b24d4921d8f8a64e35f58bb9
Signed-off-by: Claudio <cgaspari@cisco.com>
7 years agoBug 5610: PCRpt message with vendor specific object throws exception 45/37145/4
Milos Fabian [Tue, 5 Apr 2016 12:48:33 +0000 (14:48 +0200)]
Bug 5610: PCRpt message with vendor specific object throws exception

Make sure Vendor Information Object registry is always
available. Extend Object registry to provide Vendor
Information registry services.

Change-Id: Id68b0990d4775bef2ee7e0225ae1e26fb6cb014c
Signed-off-by: Milos Fabian <milfabia@cisco.com>
7 years agoBUG-6108: Fix IAE on ApplicationPeer 65/41265/3
Claudio [Wed, 29 Jun 2016 20:21:49 +0000 (22:21 +0200)]
BUG-6108: Fix IAE on ApplicationPeer

IAE is thrown when reconfigurin Application Peer via restconf.
Fix by close old Application Peer.

Change-Id: I1774be6c567af464ff61b5df62ed8e63e5491c8f
Signed-off-by: Claudio <cgaspari@cisco.com>
7 years agoBug-6084: get restart time from open message error 15/41915/1
Ajay [Tue, 12 Jul 2016 17:55:09 +0000 (17:55 +0000)]
Bug-6084: get restart time from open message error
- fix size of left-shift while calculating graceful restart capability restart time

Change-Id: I3a286b6e6a4550846e22d3ecc1adf2d7a5fc6c6f
Signed-off-by: Ajay <ajayl.bro@gmail.com>
(cherry picked from commit 47d4ef11c3d12612b990eed107d4a4494953ea47)

7 years agoFix failing unit tests 10/40910/3
Milos Fabian [Tue, 28 Jun 2016 06:21:27 +0000 (08:21 +0200)]
Fix failing unit tests

Fixed failing BmpMockSessionTest's unit test. Used mocked channel instead of spying embded channel.
Use immediate reconnecting strategy in BGPDispatcherImplTest

Change-Id: Ibf8ccb13b31be70e3cd2e9c08f667c46bfa58f13
Signed-off-by: Milos Fabian <milfabia@cisco.com>
7 years agoFix unit test regression after netty version bump 97/40097/2
Milos Fabian [Thu, 9 Jun 2016 07:10:00 +0000 (09:10 +0200)]
Fix unit test regression after netty version bump

Fixed:
java.lang.UnsupportedOperationException: direct buffer
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.array(UnpooledUnsafeDirectByteBuf.java:198)

Direct buffer do not have a backing byte array, use utility function
instead.

Change-Id: I5317255bbbca733181a7dcb477ee30449757f0e7
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 5bbc03c2af2933b1f85bea60fd4c73087c3adb23)

7 years agoremoved precondition checks for v4/v6 next-hops for v4/v6 routes 39/39339/3
Giles Heron [Tue, 24 May 2016 12:03:52 +0000 (13:03 +0100)]
removed precondition checks for v4/v6 next-hops for v4/v6 routes

Change-Id: Iddc5d26b3cff48582fb3d0d11c7fe1e0e0888b27
Signed-off-by: Giles Heron <giheron@cisco.com>
7 years agoBug-6005: PCErr generated while parsing of received PCRpt message is not sent out 70/39970/1
Ajay [Tue, 7 Jun 2016 18:08:06 +0000 (18:08 +0000)]
Bug-6005: PCErr generated while parsing of received PCRpt message is not sent out
- use Channel#writeAndFlush instead of ChannelHandlerContext#write when sending out PCEP error message so that decode handler is invoked
- added listener to ChannelFuture to log result of send operation

Change-Id: I03003577003c2f509b5a7a5ae0d1decdd12555c6
Signed-off-by: Ajay <ajayl.bro@gmail.com>
7 years agoBUG-6019: Wrong path name for route distinguisher 61/39961/1
Claudio D. Gasparini [Tue, 7 Jun 2016 09:58:12 +0000 (11:58 +0200)]
BUG-6019: Wrong path name for route distinguisher

Linkstate Nlri parser was looking for "route-distinguisher"
when it should look for "distinguisher

Change-Id: Ia0577b469bacf4a7f7c748587e8dcd296ab157b3
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit 29307aab2ff4bbf0318755538029a4e074d913cc)

7 years agoBug-6001: Injecting route with missing next-hop value causes exception in reachabilit... 72/39872/1
Ajay [Sat, 4 Jun 2016 00:10:54 +0000 (00:10 +0000)]
Bug-6001: Injecting route with missing next-hop value causes exception in reachability topology builder
- added check in reachability topology builder to handle scenario when next-hop value is null
- entry will be skipped from topology processing in such cases

Change-Id: I254666e1008f6f65e244e4cd93c3f77c8a7b58d7
Signed-off-by: Ajay <ajayl.bro@gmail.com>
(cherry picked from commit b68719f08f2e414794aa1494a770f440850d48c2)

7 years agoBug-5978: Unrecognized attribute flagged Well Known 94/39794/1
Ajay [Tue, 31 May 2016 19:06:38 +0000 (19:06 +0000)]
Bug-5978: Unrecognized attribute flagged Well Known
- set optional bit when serializing unrecognized attributes
- updated unit-test

Change-Id: I6148596b4fb660835e485473d33cc8e961e49a20
Signed-off-by: Ajay <ajayl.bro@gmail.com>
(cherry picked from commit 6ceae5695cb4df811029ebd4936a949043fa8c9b)

8 years agoBUG-5763 Disallow redelegation for PCC-initiated LSP 89/39289/4
Kevin Wang [Wed, 18 May 2016 19:45:44 +0000 (12:45 -0700)]
BUG-5763 Disallow redelegation for PCC-initiated LSP

Change-Id: I99ddbf57f64dd779618cefc09c67de3834b98935
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBUG-5548: NH serializer removal 58/39358/1
Iveta Halanova [Tue, 22 Mar 2016 06:22:22 +0000 (07:22 +0100)]
BUG-5548: NH serializer removal

Correction of removing the NH serializers

Change-Id: Ica72b9ac71a7f412d528950f7afda68e1ec03fc5
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
(cherry picked from commit ad0aaba85749c7af489867e4c91a9f800ed63565)

8 years agoBUG-5548: Wrong NH handler picked up 53/39353/1
Iveta Halanova [Mon, 21 Mar 2016 08:21:04 +0000 (09:21 +0100)]
BUG-5548: Wrong NH handler picked up

Adjusted NH handlers map to hold also afi/safi information
so IPv4 NH handler is not overwritten by VPN IPv4 NH handler.

Change-Id: If076355d5200bc161d23b261cbf6e2049453ccb1
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
(cherry picked from commit f6e5452c06a51c50efb59c9ae59560c6a8eb3596)

8 years agoRemove nexusproxy property as it is inherited via odlparent 37/38437/2
Thanh Ha [Thu, 5 May 2016 19:07:47 +0000 (15:07 -0400)]
Remove nexusproxy property as it is inherited via odlparent

Change-Id: I0714d6a9336f72c7c26f8bb677f3a777e503f202
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug-5855: Transitive Unrecognized Attribute not transiting 86/39086/1
Ajay [Tue, 17 May 2016 17:58:02 +0000 (17:58 +0000)]
Bug-5855: Transitive Unrecognized Attribute not transiting
- added missing serializer for BGP unrecognized attributes
- added unit-test to test the unrecognized attributes serializer

Change-Id: I0864d2af84438d047bc656b2a156f692cb6a0a68
Signed-off-by: Ajay <ajayl.bro@gmail.com>
(cherry picked from commit 81b3f8554509dbd20de37c108d64c39cd2eb5e20)

8 years agoRemove eclipse project files, add more extensions to gitignore 48/37748/2
Kevin Wang [Mon, 18 Apr 2016 18:30:22 +0000 (11:30 -0700)]
Remove eclipse project files, add more extensions to gitignore

Change-Id: I712b97855ecaaa9c4a757f9524d72ada85beba8c
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBUG-5731: Send Error Message if LSP-IDENTIFIERS TLV is missing 07/38107/6
Claudio D. Gasparini [Tue, 19 Apr 2016 16:11:26 +0000 (18:11 +0200)]
BUG-5731: Send Error Message if LSP-IDENTIFIERS TLV is missing

LSP-IDENTIFIERS TLV is mandatory based on
https://tools.ietf.org/html/draft-ietf-pce-stateful-pce-14#section-7.3.1
Send Error Message if missing

Change-Id: I4476951de9669efb13c4ed7973182d465aecb47b
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit a010a8570de9413aab83a65a204893652e39284b)

8 years agoBug 5689: Unhandled message is causing failure 08/38308/3
Milos Fabian [Tue, 19 Apr 2016 11:46:21 +0000 (13:46 +0200)]
Bug 5689: Unhandled message is causing failure

A write transaction is created when message is recieved,
however in case the message is not handled
(i.e. PcError Message without SRP), the transaction
is not sumbitted, which casuse a race with the next transaction.

Submitting the empty transaction of the unhandled message is
a safe way to avoid the problem.

Change-Id: Ie191eec2b9517078f39c5f065243c87b04ddc189
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug-5612: ODL(PCEP) infinitely waits for the response from peer for addlsp (cherry... 88/38688/3
Ajay [Tue, 26 Apr 2016 17:52:43 +0000 (17:52 +0000)]
Bug-5612: ODL(PCEP) infinitely waits for the response from peer for addlsp (cherry-pick)
- added configurable timeout (default 30 secs) while processing RPC requests which need response from PCC
- updated unit-test

Change-Id: I18b508564381e41e4fb1fd7f030cf52e314136ea
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBumping versions by 0.0.1 for next dev cycle 14/38714/1
Thanh Ha [Thu, 12 May 2016 04:41:50 +0000 (00:41 -0400)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: I1367201cd0780801dde3c59519713d73cd2cde8b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoRelease Beryllium-SR2 13/38713/1 release/beryllium-sr2
Thanh Ha [Thu, 12 May 2016 04:41:49 +0000 (00:41 -0400)]
Release Beryllium-SR2

Change-Id: I6f7bcbe05cc21e73e005e64646c89db489560cb3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoReplace custom Java error message with standard PCEP error message for LSP object... 88/37688/3
Kevin Wang [Fri, 15 Apr 2016 22:56:25 +0000 (15:56 -0700)]
Replace custom Java error message with standard PCEP error message for LSP object missing error.

Change-Id: I282d26f7e99faca71b58ee20c2098bb4800d27d8
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoRemove unused java test files 52/37752/2
Kevin Wang [Mon, 18 Apr 2016 20:48:09 +0000 (13:48 -0700)]
Remove unused java test files

Change-Id: I6c7958287ef47a4c5c873802d42e1762db507f28
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBug 5558 - Closing session after a large RIB is sent kills BGPCEP 41/37141/5
Milos Fabian [Tue, 5 Apr 2016 06:21:45 +0000 (08:21 +0200)]
Bug 5558 - Closing session after a large RIB is sent kills BGPCEP

Fixed peer session recovery, in a case of failed transaction chain.
The AdjRibInWriter need working chain when cleaning, also it needs
to be started with fresh transaction chain when session goes up again.
Hence recreate AdjRibInWriter with a new tx chain, when the current
failed.

Fixed duplicated session avoidance. The peer's session should not be
removed from registry if it was not created during this negotiation process.
Otherwise, the active peer's sesion can be removed from registry, which can
later lead to the duplicated session establishment.

Signed-off-by: Milos Fabian <milfabia@cisco.com>
Change-Id: I46ef33d49a11db8465a719af5ba4e1716da14602

8 years agoBug 5688: Add Null Checker for args in Stateful07TopologySessionListener 15/37515/1
Kevin [Tue, 12 Apr 2016 22:12:41 +0000 (15:12 -0700)]
Bug 5688: Add Null Checker for args in Stateful07TopologySessionListener

Change-Id: Ibe521ab07505eae3ee08878c419ef78b6662ee66
Signed-off-by: Kevin <kevixw@gmail.com>
8 years agoBug-5703: New file gets created under benchmark-app resources dir after build 08/37508/1
Ajay [Mon, 11 Apr 2016 20:55:49 +0000 (20:55 +0000)]
Bug-5703: New file gets created under benchmark-app resources dir after build

Change-Id: Id98a3809ce2c7109993d5aab1f670fe3f4db244a
Signed-off-by: Ajay <ajayl.bro@gmail.com>
(cherry picked from commit 48d27bb40f646283f8539e76998b709efff7c6a9)

8 years agoAdd Java apidocs link to Maven Site menu 27/37227/2
Thanh Ha [Thu, 7 Apr 2016 03:24:44 +0000 (23:24 -0400)]
Add Java apidocs link to Maven Site menu

Change-Id: Ib3668789d532b2d0f2d88973975473933117ec17
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 5623 - BGP-LS Topology provider is not able to handle MPLS TE LSP NLRI Type 45/36945/2
Milos Fabian [Thu, 31 Mar 2016 10:56:01 +0000 (12:56 +0200)]
Bug 5623 - BGP-LS Topology provider is not able to handle MPLS TE LSP NLRI Type

BGP-LS topology provider was throwing exception in a case of
unsupported NLRI types processing.
Soften a behaviour to debug message logging, as new BGP-LS
NLRI types are expected not to be exposed to the
topology (at least not now).

Change-Id: If2b6c2d5344fe39d78992a93ed969e1e1219f7ec
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5566: BGP listener TCP MD5 support is not working 64/36564/6
Milos Fabian [Tue, 22 Mar 2016 10:42:45 +0000 (11:42 +0100)]
Bug 5566:  BGP listener TCP MD5 support is not working

The BGP server have to be aware of all configured peers
MD5 keys.
Update (add/remove) server's keys whenever a peer is
configured/disconfigured by listening to the PeerRegistry
changes.

Change-Id: Ie9cab438a6d4358a08465e1bd9d7df28d923187f
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoEnable Maven Site generation 87/36887/2
Thanh Ha [Wed, 30 Mar 2016 14:41:51 +0000 (10:41 -0400)]
Enable Maven Site generation

Forgot to add the deploy-site.xml file in the last patch
which activates the site generation.

Change-Id: I39b17ce21dae3901e68217b260d04800cfb35820
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix missing javadoc strings 07/36907/1
Thanh Ha [Wed, 30 Mar 2016 15:20:13 +0000 (11:20 -0400)]
Fix missing javadoc strings

Change-Id: I07b022b681c343ef38e8ec14a5e655dabd5306ca
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoRemove redundant javadoc/sources configuration 45/36845/1
Thanh Ha [Tue, 29 Mar 2016 20:00:13 +0000 (16:00 -0400)]
Remove redundant javadoc/sources configuration

javadoc and sources are inherited from odlparent.

Change-Id: Ib6fc2100e29994ecf3017c5305d372b251043997
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoEnable Maven Site generation 44/36844/1
Thanh Ha [Tue, 29 Mar 2016 18:36:10 +0000 (14:36 -0400)]
Enable Maven Site generation

Change-Id: I75fb39ed1e8c653a9debc9c0dab0b9ca32ddb0bf
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 5030: BGP Benchmark app - unit tests 21/36721/1
Milos Fabian [Fri, 18 Mar 2016 13:19:49 +0000 (14:19 +0100)]
Bug 5030: BGP Benchmark app - unit tests

Added unit tests for implementation.

Change-Id: I69f76aee8c1d1b2364796cc47501230f65d94ac2
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5564: BGP-LS: Bad handling of unknown NLRI type cause NPE 05/36505/2
Milos Fabian [Mon, 21 Mar 2016 15:18:21 +0000 (16:18 +0100)]
Bug 5564: BGP-LS: Bad handling of unknown NLRI type cause NPE

Fixed destination extractor for TE LSP NLRI Type.
Fixed serialization handling for unknown NLRI Type.

Change-Id: Ie1a26e78d71d289ae2b63bd3c7a5d7167c50ee99
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoRemove unused class in bgp-rib 63/36563/2
Milos Fabian [Mon, 29 Feb 2016 11:07:32 +0000 (12:07 +0100)]
Remove unused class in bgp-rib

The BGPSessionProposalImpl is not really used in
BGP implementation. Romove related unit test too.

Change-Id: I6f8f542fa962079a8c83f21c2a20e5aae065692c
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 4488: Metadata not available for modification NodeModification 32/36132/5
Milos Fabian [Fri, 11 Mar 2016 12:03:09 +0000 (13:03 +0100)]
Bug 4488: Metadata not available for modification NodeModification

To resovle tis race condition problem, modify EffectiveRibInWriter to
work on per peer basis instead of a global per RIB instance.
The EffectiveRibInWriter is now listening on paricular peer's AdjRibIn tables.
The writer is started when a session goes up and closed when the session goes down.
Peer role is not tracked via data changes rather directly set at creation.

The possitive side effect is better error recovery in a case of failure in
EffectiveRibInWriter.
Disadvantage of this change is tighter coupling between components
(peer, eff-rib-in writer and policy tracker).

Change-Id: I650bae8638a2a4818bdd925a5f4ca2274b79d5c6
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 4731: Routes from BGP application peer not populated to example-ipv4-topology... 12/36312/2
Milos Fabian [Wed, 16 Mar 2016 17:50:48 +0000 (18:50 +0100)]
Bug 4731: Routes from BGP application peer not populated to example-ipv4-topology in case of zero routes initial POST request

Write routes into the eff-rib-in only in a case when
there are some routes in data change, so do not
overwrite empty routes table created before.

Change-Id: Ib3718b4bdee2d738514a0248eee11f0e9c8afbe0
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5467 - BGP-LS topology provider NPE 31/36431/2
Milos Fabian [Fri, 18 Mar 2016 09:18:43 +0000 (10:18 +0100)]
Bug 5467 - BGP-LS topology provider NPE

Added missing null check - in a case a node attributes
are not present (so IS-IS area is missing), the NET address is not set.

Change-Id: If3a8106abb2035b1dbf28e3760f74dab5e09fca0
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBumping versions by 0.0.1 for next dev cycle 22/36622/1
Thanh Ha [Wed, 23 Mar 2016 16:31:39 +0000 (12:31 -0400)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: Iabf82892e0261eb84e5361d5f271e14f87d245c7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoRelease Beryllium-SR1 21/36621/1 release/beryllium-sr1
Thanh Ha [Wed, 23 Mar 2016 16:31:38 +0000 (12:31 -0400)]
Release Beryllium-SR1

Change-Id: Ic8c50d4cb976cd18761dd89f1ae9ccab9c29bcc1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 5457 - BGP-LU update from app peer to exabgp peer: Labels missing 14/36014/2
Milos Fabian [Wed, 9 Mar 2016 22:51:39 +0000 (23:51 +0100)]
Bug 5457 - BGP-LU update from app peer to exabgp peer: Labels missing

Make sure all labels are added into label entry, not only the last one.

Change-Id: I54a28185a46d7757e729be1384485fb610fd8f52
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5030: BGP Application Peer beanchmark app 09/36009/1
Milos Fabian [Wed, 9 Mar 2016 17:53:32 +0000 (18:53 +0100)]
Bug 5030: BGP Application Peer beanchmark app

Created benchmark ODL application for performance
testing of BGP application peer.
The application offers two types of RPC operations:
*add-prefix - for injection of IPv4 prefix routes
*delete-prefix - for IPv4 prefix routes removal

Change-Id: Ia3e3e930b01d59e0ab21dcf777801716e6f13769
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-2825: optimize NLRI ipv4/ipv6 prefix parsing 39/35939/4
Robert Varga [Thu, 25 Feb 2016 21:33:58 +0000 (22:33 +0100)]
BUG-2825: optimize NLRI ipv4/ipv6 prefix parsing

Instead of copying arrays around, use offset-based parsers from
IetfInetUtil.

Change-Id: I2d5f8f799ae61e1d6d247827b9d0d1cee6e8b9ef
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit e7ffadf95911352e64f93d2357dffa1a7ff52741)

8 years agoBUg-2825: optimize prefixForBytes/prefixForByteBuf 44/35944/4
Robert Varga [Thu, 25 Feb 2016 20:02:33 +0000 (21:02 +0100)]
BUg-2825: optimize prefixForBytes/prefixForByteBuf

Instead of always performing a copy, copy the array only on size
mismatch.

In prefixForByteBuf, allocate a bytearray which has correct size and
read into it -- the rest of it will be zero-initialized, just as it
should be.

Change-Id: I1e71e98e3efba2d731bb8be2c6cfb8062dec00e2
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit 4d5062600e78c4b8c3c2d0e85d454f72f67b8104)

8 years agoBUG-2825: use IetfInetUtil to instantiate addresses 43/35943/4
Robert Varga [Thu, 18 Feb 2016 16:31:59 +0000 (17:31 +0100)]
BUG-2825: use IetfInetUtil to instantiate addresses

Rather than brewing our own strings from bytes, use the utility methods
provided with the model. Also use a single instance for empty prefix.

Change-Id: Idfbfc7f2374b8d0205f1d0e3407e3e347242dbc9
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 2aac576b95150606a0d4258b6b57702579156a5b)

8 years agoByteArray: do not instantiate arrays if not needed 42/35942/2
Robert Varga [Wed, 24 Feb 2016 19:41:03 +0000 (20:41 +0100)]
ByteArray: do not instantiate arrays if not needed

Move array instantiation into the block where it is used, skipping it
completely in the case we have properly-sized array.

Change-Id: Ie5027f429830a39bfd2835cc5751cb3d6c27dd1e
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 439698fb6b677d9c3e121a0031499b4c68b59c20)

8 years agoDo not instantiate byte[] needlessly 41/35941/1
Robert Varga [Wed, 24 Feb 2016 19:32:46 +0000 (20:32 +0100)]
Do not instantiate byte[] needlessly

Creating a single-byte array is not needed here.

Change-Id: I518419438d6eae6146616fba0725245fc348fee7
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 51ea1ad17e3fd9b7ffe943cfe5f4e3bd71a892c8)

8 years agoBug 5453 - PCEP-SR capability is not send in Open Message 08/35708/1
Milos Fabian [Thu, 3 Mar 2016 11:32:33 +0000 (12:32 +0100)]
Bug 5453 - PCEP-SR capability is not send in Open Message

The PCEP-SR has to extend latest stateful Open Message handler,
which has changed since Lithium.

An appraoch of overriding parsers seems to be fragile, think about
something more flexible for Boron release (at leat for
capabilities - Open Message TLVs).

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

8 years agoBug 5449: Fix ClassCastException in BGP-LU 17/35617/2
Milos Fabian [Wed, 2 Mar 2016 16:31:06 +0000 (17:31 +0100)]
Bug 5449: Fix ClassCastException in BGP-LU

Fix MPLS label value conversion from BI to BA.

Change-Id: Ief28ce287baac9432d61ab7860701917018c194b
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoDo not use Lists.newArrayList() 70/35470/1
Robert Varga [Thu, 25 Feb 2016 21:00:42 +0000 (22:00 +0100)]
Do not use Lists.newArrayList()

We have diamond notation, which renders this unneeded.

Change-Id: I530718c00020a82f3af20d98b17d7a6e3bb3854f
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit 7cebc7387df2face7a2e0e2ec71f1edd891166da)

8 years agoPre-size NLRI lists 54/35454/1
Robert Varga [Thu, 25 Feb 2016 20:57:54 +0000 (21:57 +0100)]
Pre-size NLRI lists

We have an input list, hence we know how big the output will be. Use
that to make sure we do not resize the list.

Change-Id: I6b8c9ec771416b98578820fd8b0b0d5104231c19
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit 21b6b6dbcaa74e71ceb39492b76cc3171e5b6de0)

8 years agoDo not use string concat in precondition 45/35445/1
Robert Varga [Thu, 25 Feb 2016 19:47:31 +0000 (20:47 +0100)]
Do not use string concat in precondition

Change-Id: Id25e4baab39ba13ad71748f4835732357fc11104
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit f5b6727ce04f1f3224076ed316ebd19064a84b97)

8 years agoBug 5380 - NPE in BGP-LS MPLS-TE LSP serializer 98/35298/1
Milos Fabian [Thu, 18 Feb 2016 12:29:02 +0000 (13:29 +0100)]
Bug 5380 - NPE in BGP-LS MPLS-TE LSP serializer

Fix NLRI transformation from BI to BA - cases are
not a part of the BI data representation.

Fix typo in LSP TE NLRI type enumeration encoding -
missing hypen.

Change-Id: I0ee2470bc287b438a3d96189ea524145784ff95c
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 430e082b6a89ea6957fdb3c1b6930f72f702dac1)

8 years agoBumping versions by 0.0.1 for next dev cycle 61/34961/1
Thanh Ha [Fri, 19 Feb 2016 00:24:46 +0000 (19:24 -0500)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: I39e750df8214cb264ddf51f100a60b168efdb575
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoRelease Beryllium 60/34960/1 release/beryllium
Thanh Ha [Fri, 19 Feb 2016 00:24:45 +0000 (19:24 -0500)]
Release Beryllium

Change-Id: I025ffdda05e8e89721af44e217a4a018e8ce0acb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBUG-5285: Transaction chain broken 41/34341/2
Claudio D. Gasparini [Tue, 9 Feb 2016 14:28:35 +0000 (15:28 +0100)]
BUG-5285: Transaction chain broken

Transaction chain broken when peer is connected after
application peer has been configuted.
Issue is caused when it tries to update app-peer adj-rib-out,
which doesn't exist.

Change-Id: I6c765cc0fb03100bc6564466f93eb65fb72cfe48
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug 5265: Failed to deploy multiple instances of BMP monitoring station 41/34241/2
Milos Fabian [Mon, 8 Feb 2016 09:42:21 +0000 (10:42 +0100)]
Bug 5265: Failed to deploy multiple instances of BMP monitoring station

Avoid overriding of previously created instance.
Create common parent node using merge operation.

Change-Id: I860be2d8cf44826e2d3c4975276664ef3f852313
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-5266: Perform role change in one step 45/34245/2
Claudio D. Gasparini [Mon, 8 Feb 2016 11:05:53 +0000 (12:05 +0100)]
BUG-5266: Perform role change in one step

Two steps role change was done when peer was removed,
after code on LocRibWriter has been reworked for previous
fixes this is not required any more and can be done in
only one step.

Change-Id: I9d885f9b99cffc21f93d18dcf8e953885a44ef38
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5097: Modified CacheDeletedPeers to to be local for each RIB 38/34238/2
Claudio D. Gasparini [Mon, 8 Feb 2016 09:20:06 +0000 (10:20 +0100)]
BUG-5097: Modified CacheDeletedPeers to to be local for each RIB

Modified CacheDeletedPeers to to be local for each RIB

Change-Id: Ie6ec3a74686fbff7f700de97cad919d0f3bc0b9e
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5243: Failed to send message Notify 31/34131/3
Claudio D. Gasparini [Fri, 5 Feb 2016 09:20:36 +0000 (10:20 +0100)]
BUG-5243: Failed to send message Notify

Don't try to send Notify message if the session
has been closed externally

Change-Id: Idd57bd5bf60e4f758ed0187bd12149854740cd36
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5166: Configuration of iBGP peer failed after previous BGP peers deconfiguration 89/33989/1
Milos Fabian [Wed, 3 Feb 2016 14:21:34 +0000 (15:21 +0100)]
BUG-5166: Configuration of iBGP peer failed after previous BGP peers deconfiguration

De/Re-configuration was not treated well in the OpenConfig provider.
The Neighbor comaparator was outputting false-negative results,
because of some default values, which are not in our BGP configuration
interest.
Change Neighbor comparator to compare values realted to our BGP
peer configuration only.

Change-Id: I5e406e23bde8b183decf915e786f0fc29423ec7a
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoUse pingpong data broker for BI datastore 70/33970/2
Robert Varga [Sun, 31 May 2015 12:09:06 +0000 (14:09 +0200)]
Use pingpong data broker for BI datastore

This mirrors the use of BA use of pingpong broker.

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

8 years agoBUG-5202: BGP Application Peer configuration failure. 45/33945/3
Claudio D. Gasparini [Wed, 3 Feb 2016 12:33:28 +0000 (13:33 +0100)]
BUG-5202: BGP Application Peer configuration failure.

Use ModuleKey from existing BGPApplicationPeer module,
set it to the modified module.

Change-Id: I4feb888f92194c578ca38513b16d24043ba9a15e
Signed-off-by: Milos Fabian <milfabia@cisco.com>
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5097: Error trying to update EffectiveRibIn from a removed Peer 97/33697/5
Claudio D. Gasparini [Wed, 27 Jan 2016 18:51:13 +0000 (19:51 +0100)]
BUG-5097: Error trying to update EffectiveRibIn from a removed Peer

When more than one peer are removed at same time, cause a race
condition between remove Peer from DS and update removed routes.
Fix by creating a shared Singleton cache with removed peers between
listeners.

Change-Id: Ic4b2ab8283e07695203f9e4d9ceb245985104766
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5141: Failed to send Update Message on reconfigure Peer 77/33777/2
Claudio D. Gasparini [Fri, 29 Jan 2016 10:58:35 +0000 (11:58 +0100)]
BUG-5141: Failed to send Update Message on reconfigure Peer

Clean up when reconfigurin Peer as we do when we reconnect peer.
Update Log levels on LocRibWriter for skipped change.
Making Debug logs more clear.

Change-Id: Ifb3fa2a0e4dc4633814ce3620f5ac585d01aa575
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5138: NPE in PcRptMessageCodec 07/33807/1
Milos Fabian [Fri, 29 Jan 2016 11:13:05 +0000 (12:13 +0100)]
BUG-5138: NPE in PcRptMessageCodec

To avoid NPE, process Bandwidth object first, then
all other objects in the list.

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

8 years agoBUG-5098: NPE when reconfiguring openconfig 55/33555/3
Claudio D. Gasparini [Tue, 26 Jan 2016 13:30:19 +0000 (14:30 +0100)]
BUG-5098: NPE when reconfiguring openconfig

When configuring more than one BGPPeer through Netconf
consecutive withouth give time to reconfiguration
to finish will cause an NPE.
Fix by doin blocking reconfiguration.

Change-Id: I000fe3a146f40713fb918c07442396bd8eaa7598
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5084: BGPOpenConfigListener NPE 38/33538/1
Claudio D. Gasparini [Tue, 26 Jan 2016 09:41:56 +0000 (10:41 +0100)]
BUG-5084: BGPOpenConfigListener NPE

Fix by check wheter List<Neighbor> is null.

Change-Id: Ia332df95b52f7b792bdb0a815d696453f33a1a8d
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5076: OffSetMap reworked 57/33457/3
Claudio D. Gasparini [Sat, 23 Jan 2016 11:45:09 +0000 (12:45 +0100)]
BUG-5076: OffSetMap reworked

OffSetMap reworked, removed previously introduced ArrayList

Change-Id: Id429fda477c8a038c1d64ec103b62e625637c1fd
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5055: Initialization of LocRib Table 73/33373/1
Claudio D. Gasparini [Thu, 21 Jan 2016 19:41:19 +0000 (20:41 +0100)]
BUG-5055: Initialization of LocRib Table

When LocRib table are created when insert already
existan routes. They where created when inserting
supported tables. Which will make the process to be
repeated if more than one table is supported.
Solved by move the process at the point where
specific table is created.
Also fixed onTable change, since it should add only
table to corresponding LocribWriter listener

Change-Id: I4f87d1bf6e2b24d9ad1911d15ce3923c7538c156
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4689: Advertising performance fix II 39/33239/2
Milos Fabian [Wed, 20 Jan 2016 12:01:23 +0000 (13:01 +0100)]
BUG-4689: Advertising performance fix II

When AdjRibOutListener get a notification with too many changes,
it can fill output buffer with wrtitten Update messages,
without a chance to flush a socket, because the AdjRibOutListener
is blocked when channel is not writable - deadlock situation until a
savior (KA message) will not be send.
Flushing with every write operation is uneffective, hence try to call
the "flush" in a situation when the channel become unwritable.

Change-Id: Ie50b9154d1166d55308c3438c12b9c1b9d3ce19f
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 095c87da7d565dac2cffa11710e7dd0e4a67c20f)

8 years agoBug 5048 - Unable to deploy multiple RIB instances 40/33240/1
Milos Fabian [Thu, 21 Jan 2016 14:56:27 +0000 (15:56 +0100)]
Bug 5048 - Unable to deploy multiple RIB instances

When creating a new RIB instances do not override
top-level parent node common for all instances.
To make sure the node exists, merge an empty structure
of parent node.

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

8 years agoBUG-4835: Routes no withdrawn when the same prefixes annonced. 08/33208/3
Claudio D. Gasparini [Tue, 19 Jan 2016 12:58:57 +0000 (13:58 +0100)]
BUG-4835: Routes no withdrawn when the same prefixes annonced.

Routes not withdrawn when eBGP peers are disconnected and
the same prefixes annonced
Fix by shrink OFFSET

Change-Id: I7756c677b34372f5e0c19aefdd14bca74a226d78
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug 4921 - Support Bandwidth Usage object 00/33100/2
Milos Fabian [Mon, 11 Jan 2016 01:10:52 +0000 (02:10 +0100)]
Bug 4921 - Support Bandwidth Usage object

Support Bandwidth-Usage object as defined in
https://tools.ietf.org/html/draft-dhody-pce-stateful-pce-auto-bandwidth-06#section-5.3.2
The object is used in PcRpt message report the real-time
bandwidth usage of a TE LSP.
Make object-type configurable, since no codepoint is assigned by IANA.
By default object-type=5.

Change-Id: I8aacf86cee3f647ad47a0dc01a861b16f89a62c5
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 5bd37a2832c88475435300ffe46836cb895309c4)

8 years agoBUG-4982: NPE in LocRibWriter when removing a route 22/32922/1
Claudio D. Gasparini [Mon, 18 Jan 2016 10:30:12 +0000 (11:30 +0100)]
BUG-4982:  NPE in LocRibWriter when removing a route

Fix by check wheter entry is null.

Change-Id: I4d464e8bdb0ff0e4bbaeeb19f4ad46745b67d367
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit 86a47d69e05d776bc4b049600a10c257300ff125)

8 years agoBUG-2208: PCC-MOCK Stateful Sync Opt 11/32911/1
Claudio D. Gasparini [Sat, 28 Nov 2015 21:33:05 +0000 (22:33 +0100)]
BUG-2208: PCC-MOCK Stateful Sync Opt

Update pcc-mock to support:
+State Synchronization Avoidance.
+Incremental Synchronization
+PCE Triggered Initial Synchronization
+PCE Triggered Lsp Resynchronization
+PCE Triggered Full DB Resynchronization
Input
--state-sync-avoidance 10 5 5
--incremental-sync-procedure 10 5 5
--triggered-initial-sync
--triggered-re-sync
+DBVersion number after PCC reconnection
+Seconds to wait until disconnect
+Seconds to wait until PCC reconnects

Change-Id: I61f673177a086d969b6f097733351413b71ea8e2
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit a829992c535982c390229b86ed86aa02ad5dd4e0)

8 years agoBUG-2208: BUG-2208: Fix minors triggered resync bugs 96/32896/1
Claudio D. Gasparini [Fri, 8 Jan 2016 12:02:46 +0000 (13:02 +0100)]
BUG-2208: BUG-2208: Fix minors triggered resync bugs

Fix isTriggeredInitialSyncEnable
Change isSynchronized by method getSynchronized

Change-Id: Icef303f48fb0b192e4d62494e6462aca34e3eea8
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
(cherry picked from commit 6e9a5f7e5d30aea4811f1afa6eaadae8179e739e)

8 years agoBug 4836 - tunnel's paths are not removed from ODL after tunnel status "Down" is... 26/32826/2
Milos Fabian [Mon, 11 Jan 2016 14:07:21 +0000 (15:07 +0100)]
Bug 4836 - tunnel's paths are not removed from ODL after tunnel status "Down" is reported

In a case when PCC reports tunnel has been shutdowned, but not removed
(LSP-ID=0, remove=false), ODL PCE should remove all previously reported
paths related to the tunnel as there are no paths signaled anymore.
Also, in this case PCC will not send report/s with explicit removal
of those paths.

Change-Id: I7b2c34431b094b27ac1fc55c2a75312e00868532
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 4381024781b5ecda601eee2217c8c10e4d61a6c8)

8 years agoBug 4864 - BMP: No RIB table is created for non-MP peer 24/32824/2
Milos Fabian [Mon, 4 Jan 2016 08:36:46 +0000 (09:36 +0100)]
Bug 4864 - BMP: No RIB table is created for non-MP peer

Initiate IPv4 Unicast RIB tables by default for all peers.
Fixes case when peer is not supporting
multiprotocol capability.

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

8 years agoBug 4837 - BMP test tool 25/32825/1
Milos Fabian [Mon, 4 Jan 2016 08:45:39 +0000 (09:45 +0100)]
Bug 4837 - BMP test tool

The bmp-mock is a standalone java application for puropose of
testing BMP monitoring station, in a way of faking BMP-enabled routers
and their peers. It allows to report mock Route Monitoring messages including
simple BGP routes.

Change-Id: Ibed6d239a933f84a5dfeda8ff18bcf6ddf2b8c3e
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoUpdate .gitreview for stable/beryllium 24/32624/1
Thanh Ha [Thu, 14 Jan 2016 21:19:37 +0000 (16:19 -0500)]
Update .gitreview for stable/beryllium

Change-Id: Ic006d74b5284de85b48b928862e0ed6702d4c2b4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBUG-4714 : No routes from loc-rib are advertised 17/32417/7
Claudio D. Gasparini [Tue, 12 Jan 2016 12:25:53 +0000 (13:25 +0100)]
BUG-4714 : No routes from loc-rib are advertised

When new peer connects, already existent routes on EffectiveRibIn
Table are not advertised and stored on corresponding AdjRibOut
Peer table. Therefore AdjRiboutListener doesnt advertise
these routes.
Fix by apply routes, when supported tables are created.

Change-Id: Id263723ee685bbc61468e1ea532f0f57f1c6c6c7
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4939: Remove BGP Peer structure from DS once session is close 21/32421/6
Claudio D. Gasparini [Sun, 10 Jan 2016 12:38:32 +0000 (13:38 +0100)]
BUG-4939: Remove BGP Peer structure from DS once session is close

When session is close remove whole Peer Structure from DS,
and create it again on Session up.

Change-Id: I7796983a98d8378b7fa80c61a9bed55bf46c836f
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>