bgpcep.git
8 years agoCode clean up 39/38239/3
Claudio D. Gasparini [Wed, 27 Apr 2016 14:22:31 +0000 (16:22 +0200)]
Code clean up

Remove deprecated leafs on extended-community
and obsolete choice c-segment

Change-Id: If62d0fede00d15b0c3bfa7da139009eecc8beaff
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-5612: ODL(PCEP) infinitely waits for the response from peer for addlsp 22/38122/7
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
- added configurable timeout (default 30 secs) while processing RPC requests which need response from PCC
- updated unit-test

Change-Id: I18b508564381e41e4fb1fd7f030cf52e314136ea
Signed-off-by: Ajay <ajayl.bro@gmail.com>
8 years agoAdd support of IPv6 VPN ext (RFC4659) for BGP-MPLS 84/36984/19
Kevin Wang [Fri, 1 Apr 2016 00:17:13 +0000 (00:17 +0000)]
Add support of IPv6 VPN ext (RFC4659) for BGP-MPLS

Change-Id: Iaebcb20ed461667626f13c44e2011610212f8893
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBUG-4827: BGP Add Path Flowspec ribSupport 66/37666/11
Claudio D. Gasparini [Fri, 15 Apr 2016 10:51:51 +0000 (12:51 +0200)]
BUG-4827: BGP Add Path Flowspec ribSupport

Implement support for add path on flowspec extension

Change-Id: Id7f94ed1719bfa0326d7c652586d594e94e4141a
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug 5558 - Closing session after a large RIB is sent kills BGPCEP 35/37535/3
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
(cherry picked from commit 54e12560f5b823a24da39c4f9cbe274fb88f30ca)

8 years agoBUG-4827: BGP Add path Labeled ribSupport 68/37668/6
Claudio D. Gasparini [Fri, 15 Apr 2016 12:19:40 +0000 (14:19 +0200)]
BUG-4827: BGP Add path Labeled ribSupport

BGP Add path support for labeled extension

Change-Id: I6c94948bc90035078cb04f976457cff0a2591ca9
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: BGP Add path Ipv6 ribSupport 69/37669/8
Claudio D. Gasparini [Fri, 15 Apr 2016 10:55:35 +0000 (12:55 +0200)]
BUG-4827: BGP Add path Ipv6 ribSupport

BGP Add path support for Ipv6 extension

Change-Id: I913097608e4f9ea62aca0820b53bbd67dce64dd9
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoRemove eclipse project files, add more extensions to gitignore 47/37747/2
Kevin Wang [Mon, 18 Apr 2016 18:25:54 +0000 (11:25 -0700)]
Remove eclipse project files, add more extensions to gitignore

Change-Id: Iffd99c3baa66ef552768ab901a40e2473ce5e846
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBUG-5441: BGP SR prefix SID extension 14/37714/18
Iveta Halanova [Mon, 18 Apr 2016 08:26:20 +0000 (10:26 +0200)]
BUG-5441: BGP SR prefix SID extension

ref.: https://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-02

Updated and added yang modules in parser, LU and inet projects.
Implemented individual handlers and registered.
Created parser, serialized and registry interfaces.
Updated and add unit tests.

Change-Id: If39bfc6c06bf65687d20caa800e9a891ce11a12e
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-5779: RPC for peer non mandatory 97/38097/4
Iveta Halanova [Tue, 26 Apr 2016 07:26:11 +0000 (09:26 +0200)]
BUG-5779: RPC for peer non mandatory

Change-Id: I16bfda6b8e2a604f029250a2cc444330f35c6346
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-5731: Send Error Message if LSP-IDENTIFIERS TLV is missing 15/38015/2
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>
8 years agoBug-5571: The IRO sub-objects should support loose bit 92/37992/2
Ajay L [Thu, 21 Apr 2016 20:58:03 +0000 (13:58 -0700)]
Bug-5571: The IRO sub-objects should support loose bit

Change-Id: I4e87553eb019de6c3f2fbcf48b394537d897cce8
Signed-off-by: Ajay L <ajayl.bro@gmail.com>
8 years agoBUG-4826: Remove duplicate Code on Evpn Esi registry 01/38001/3
Claudio D. Gasparini [Tue, 19 Apr 2016 14:33:15 +0000 (16:33 +0200)]
BUG-4826: Remove duplicate Code on Evpn Esi registry

Remove duplicate Code on Evpn Esi registry

Change-Id: I5d47b4133e289516453a3d1e822edd4d7f26bf64
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoFix config module unit test failures 44/38044/2
Tom Pantelis [Sun, 24 Apr 2016 06:13:04 +0000 (02:13 -0400)]
Fix config module unit test failures

The implementations of NettyThreadgroupModule and NettyThreadgroupModule
HashedWheelTimerModule in the controller were recently changed - they
now obtain the service instance via the OSGi service registry. Added
appropriate mocking to the various config module tests to get them
working.

Change-Id: I83736883ee2c933d3529a7d297ef178b74e03a57
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
8 years agoBUG-5766: BGP Link Bandwidth Extended Community 78/37978/3
Claudio D. Gasparini [Wed, 20 Apr 2016 13:19:55 +0000 (15:19 +0200)]
BUG-5766: BGP Link Bandwidth Extended Community

Implementation of BGP Link Bandwidth Extended Community
ref.: https://tools.ietf.org/html/draft-ietf-idr-link-bandwidth-06#section-2

Change-Id: I5212a71f304035bff5d8f8d23e5b9701d6105261
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-4827: IPv4 Unicast codec for add-path 13/35613/15
Milos Fabian [Wed, 2 Mar 2016 14:25:37 +0000 (15:25 +0100)]
Bug-4827: IPv4 Unicast codec for add-path

Implements IPv4 Unicast NLRI parser and extended
existing serializer to handle extended NLRI (path-id).

Change-Id: I367b78d33d8ae0b4c064a28cf28ed0aad82027e7
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoReplace custom Java error message with standard PCEP error message for LSP object... 46/37746/2
Kevin Wang [Mon, 18 Apr 2016 18:12:26 +0000 (11:12 -0700)]
Replace custom Java error message with standard PCEP error message for LSP object missing error.

Change-Id: I166b57fc0f6ac4cdca64adc6215a74e0043a6c6e
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBug 5503 - remove package cyclic dependency in BGP-FS 21/37321/4
Kinsey Andrea Nietzsche [Fri, 8 Apr 2016 12:08:58 +0000 (14:08 +0200)]
Bug 5503 - remove package cyclic dependency in BGP-FS

Change-Id: Ie99145df5ecc8c846c7552d1129153133250bfb9
Signed-off-by: Kinsey Andrea Nietzsche <kinsey.nietzsche@pantheon.sk>
8 years agoBug 4827: MultiPathSupport utilities 15/37315/5
Milos Fabian [Fri, 8 Apr 2016 08:30:52 +0000 (10:30 +0200)]
Bug 4827: MultiPathSupport utilities

Added MultiPathSupportUtil utlity class
can be useful in when processing Add-Path aware
BGP PDUs.

Change-Id: Iec7779986569ec8b202d01c5009ff837c467c5d3
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-4827: Replace extractPathId method from RibSupport 64/37964/3
Claudio D. Gasparini [Tue, 19 Apr 2016 12:44:21 +0000 (14:44 +0200)]
BUG-4827: Replace extractPathId method from RibSupport

Replace extractPathId method from RibSupport
by PathIdUtil.extractPathID

Change-Id: I55d4888c476c11f0bf85b805795043413b280d01
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug 4827: Add PathId utility class 12/35612/14
Milos Fabian [Wed, 2 Mar 2016 13:59:56 +0000 (14:59 +0100)]
Bug 4827: Add PathId utility class

The Utility class provides functions
for optional writing of path-id value
into a ByteBuf.

Change-Id: I65235c7aab9d60df9054ecd475481f21e1c430a8
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-5440: VWPS EVPN Extension 69/37869/5
Claudio D. Gasparini [Wed, 20 Apr 2016 11:28:50 +0000 (13:28 +0200)]
BUG-5440: VWPS EVPN Extension

VWPS EVPN Extension implementation
ref: https://tools.ietf.org/html/draft-ietf-bess-evpn-vpws-02#section-3.1

Change-Id: Idff5cd22853cd94505468280c2d601f6da111e37
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-5511: Openconfig - registry lookup for new peer 84/37484/4
Iveta Halanova [Tue, 12 Apr 2016 10:24:47 +0000 (12:24 +0200)]
BUG-5511: Openconfig - registry lookup for new peer

Change-Id: Ib0f2b41e1ce65bfc31a7b96568af406c1e3ac4c2
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-4826: BGP Evpn RibSupport test 54/37954/1
Claudio D. Gasparini [Fri, 8 Apr 2016 14:22:01 +0000 (16:22 +0200)]
BUG-4826: BGP Evpn RibSupport test

BGP Evpn RibSupport test implementation

Change-Id: Ib91aa24fa0ed74c72a2d7da36f481a5a615ff98d
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4826: BGP Evpn Rib support 23/37923/3
Claudio D. Gasparini [Tue, 5 Apr 2016 09:29:54 +0000 (11:29 +0200)]
BUG-4826: BGP Evpn Rib support

Implementation of Rib support, Activators, and registration
of handlers.

Change-Id: I7cfadabb7f267c326e58a4f80e323008638faa01
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug 4827: Consumer specific parsers for BGP add-path 90/35590/15
Milos Fabian [Wed, 24 Feb 2016 07:49:24 +0000 (08:49 +0100)]
Bug 4827: Consumer specific parsers for BGP add-path

The BGP add-path introduces extended form of NLRI (path-id added)
but new NLRI is not distiguishable from regular NLRI
(i.e. code points are the same).
The add-path capabilities are neighbor specific and information
about supported capabilities is available once the session with
a peer goes up. Also the BGP extension provides read-only
consumption of handlers registers, hence easiest way is to pass
the consumer-specific add-path constrain via input arguments.

Extend parser's registers to handle user defined constraints.
Added new NLRI registrator for add-path NLRI parsers.
Added PeerSpecificParserConstraint which can carry any future
user specific constraint to be used during parsing process.
Added MultiPathSupport interface to carry peer's specific
add-path capabilities.

Change-Id: Ieb361c726bd67f74fc653d3423870659404f1b9d
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-4826: BGP Evpn Nlri's handlers and Registry test 95/37595/3
Claudio D. Gasparini [Thu, 7 Apr 2016 10:53:54 +0000 (12:53 +0200)]
BUG-4826: BGP Evpn Nlri's handlers and Registry test

BGP Evpn Nlri's handlers and Registry test implementation

Change-Id: I3e08b51d19c8d141c4f4b4f2877edf3e1cfbb29e
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4826: BGP Evpn Nlri's handlers 94/37594/5
Claudio D. Gasparini [Tue, 5 Apr 2016 09:24:28 +0000 (11:24 +0200)]
BUG-4826: BGP Evpn Nlri's handlers

Evpn Nlri cases handlers
https://tools.ietf.org/html/rfc7432#section-7

Change-Id: I385e20a0e510328761c1f341a8c7744182dc5850
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4826: BGP Evpn Nlri's registry 93/37593/4
Claudio D. Gasparini [Tue, 5 Apr 2016 09:27:35 +0000 (11:27 +0200)]
BUG-4826: BGP Evpn Nlri's registry

Implementation of registry for handle Nlri's.

Change-Id: If71959b5c37f5c3b62268c25c1c10469010a4c08
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: Create grouping for Path-id and make it by default 0 00/37800/2
Claudio D. Gasparini [Tue, 19 Apr 2016 11:27:40 +0000 (13:27 +0200)]
BUG-4827: Create grouping for Path-id and make it by default 0

+ Create grouping for Path Id
+ Make Path Id default value 0

Change-Id: I85ad9df929da144ff4b16e9042b21d83202c03c9
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoRemove unused java test file 51/37751/2
Kevin Wang [Mon, 18 Apr 2016 20:47:01 +0000 (13:47 -0700)]
Remove unused java test file

Change-Id: Ia49c16d9d6628d8e15425d24b5fc01b7bec1f45d
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBGP-4826: Evpn Extended Communities Handlers Tests 92/37592/3
Claudio D. Gasparini [Wed, 6 Apr 2016 09:52:48 +0000 (11:52 +0200)]
BGP-4826: Evpn Extended Communities Handlers Tests

Evpn Extended Communities Handlers Tests

Change-Id: I158374c44b0a842d8e68b90175880acc6e468d15
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4826: Evpn Extended communities handlers 91/37591/4
Claudio D. Gasparini [Tue, 5 Apr 2016 09:22:59 +0000 (11:22 +0200)]
BUG-4826: Evpn Extended communities handlers

Evpn Extended communities handlers
https://tools.ietf.org/html/rfc7432#section-7.5

Change-Id: I20328e15b60a885b64a9ffbf4ac34eb6fe7a23f8
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBMP: Sent/Received Open Message is not visible in DS 46/36246/5
Milos Fabian [Tue, 15 Mar 2016 11:28:07 +0000 (12:28 +0100)]
BMP: Sent/Received Open Message is not visible in DS

Instantiate codecs before initiating peer.
Enhance integration unit test to check presence of
sent and received Open message in DS.

Change-Id: Iad45750393bea9b68a1ad1f40def95f92d9e8fbd
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-4826: Evpn ESI Registry 90/37590/3
Claudio D. Gasparini [Tue, 5 Apr 2016 09:57:10 +0000 (11:57 +0200)]
BUG-4826: Evpn ESI Registry

Evpn ESI Registry Implementation

Change-Id: I50ee6ddf717fe1553c7b57197ee91e43ad91f349
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: BGP Add Path update odl-bgp-rib-impl-cfg 13/37613/2
Claudio D. Gasparini [Thu, 14 Apr 2016 12:50:03 +0000 (14:50 +0200)]
BUG-4827: BGP Add Path update odl-bgp-rib-impl-cfg

Update path-selection-mode list name to rib-path-selection-mode
beacuse of confilct with path-selection-mode container

Change-Id: Ic7fb67f25227968a8091301d0e6e0509e52aa2c2
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoFix failing config tests 15/37615/2
Milos Fabian [Thu, 14 Apr 2016 13:05:17 +0000 (15:05 +0200)]
Fix failing config tests

Add missing bundle service mock.

Change-Id: If9fa9346b36f7b716be74dd7dd3eac1289ee65f5
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-4826: Update BGP Evpn yang model 45/37545/4
Claudio D. Gasparini [Wed, 13 Apr 2016 12:15:57 +0000 (14:15 +0200)]
BUG-4826: Update BGP Evpn yang model

-Update BGP Evpn yang model by inserting a container over
each Evpn Case.
-Make Esi Choice and Evpn Choice manatory.
-Update of EsiModelUtil with new Qnames
-Update of test required by Evpn yang model update.

Change-Id: Ie55365d9694cec0c1be9a6b2b97420a0d0038632
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-5688: Fix NullPointer Exception for args in Stateful07TopologySessionListener 16/37516/1
Kevin [Tue, 12 Apr 2016 22:36:23 +0000 (15:36 -0700)]
Bug-5688: Fix NullPointer Exception for args in Stateful07TopologySessionListener

Change-Id: Iefd180597619d6a934529859c8fefcc003888686
Signed-off-by: Kevin <kevixw@gmail.com>
8 years agoBUG-4826: Evpn ESI type Handlers test 58/37258/8
Claudio D. Gasparini [Tue, 5 Apr 2016 12:57:16 +0000 (14:57 +0200)]
BUG-4826: Evpn ESI type Handlers test

Evpn ESI Handlers test implementation

Change-Id: I311e23b4b024c28f008d8b1142d2e73129c9d393
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4826: Evpn ESI Handlers 57/37257/8
Claudio D. Gasparini [Tue, 5 Apr 2016 09:21:16 +0000 (11:21 +0200)]
BUG-4826: Evpn ESI Handlers

Evpn ESI Handlers
https://tools.ietf.org/html/rfc7432#section-5

Change-Id: I10fce0720ed60e7f37f416e7af741c61950afa85
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-5703: New file gets created under benchmark-app resources dir after build 59/37459/2
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>
8 years agoBug-5691: Replace usage of deprecated DCL with DTCL 71/37371/4
Ajay L [Sat, 9 Apr 2016 01:49:17 +0000 (18:49 -0700)]
Bug-5691: Replace usage of deprecated DCL with DTCL

Change-Id: Id92514c2d07cc694be58578ad0e53ac73383d27b
Signed-off-by: Ajay L <ajayl.bro@gmail.com>
8 years agoBUG-5511: Support Route Refresh operation from BGP 55/36555/14
Iveta Halanova [Tue, 22 Mar 2016 14:35:31 +0000 (15:35 +0100)]
BUG-5511: Support Route Refresh operation from BGP

Created module for peer-rpc request.
Implemented class for handling input.
Updated unit tests

Change-Id: I1e0f24acc9eb713c9c60f4ab977e7efd892f563a
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBug 5704 - BGP session unit tests failing after Netty version bump 76/37476/2
Milos Fabian [Tue, 12 Apr 2016 08:48:27 +0000 (10:48 +0200)]
Bug 5704 - BGP session unit tests failing after Netty version bump

Fixed BGPSessionImpl unit test. Used mocked channel instead of
spying embded channel.

Change-Id: Iefaa41ecb80a510554b814a58cc6fdeb08422b57
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG 4826: Create BGP-EVPN module 15/37215/2
Claudio D. Gasparini [Mon, 4 Apr 2016 07:31:02 +0000 (09:31 +0200)]
BUG 4826: Create BGP-EVPN module

Create modules and BGP Evpn yang model
ref.: https://tools.ietf.org/html/rfc7432

Change-Id: I7c257cf8d89aba0732bbd3237b0844657b7a36b3
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoAdd Java apidocs link to Maven Site menu 28/37228/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-4827: N/All Paths Selection Mode test implementation 60/36960/10
Claudio D. Gasparini [Fri, 1 Apr 2016 08:41:35 +0000 (10:41 +0200)]
BUG-4827: N/All Paths Selection Mode test implementation

Implementation test for All/N Paths Selection Mode.

Change-Id: Ia4b263ebe23c7d470685b0452e7098b21b25f0f6
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-5023: Simplify client re-connection strategies 24/36924/8
Ajay [Thu, 31 Mar 2016 00:23:29 +0000 (00:23 +0000)]
Bug-5023: Simplify client re-connection strategies
- removed dependency on protocol-framework from all projects
- use of netty capabilities for reconnection instead of using protocol-framework reconnection strategies
- added new per-peer "retry-timer" attribute for reconnection interval (default value 10)
- updated cfg yang model and initial config files
- updated unit-tests for above changes

Change-Id: I32946598d791a8264e73133a2bf4a4ed35598a39
Signed-off-by: Ajay <ajayl.bro@gmail.com>
8 years agoBUG-4827: Fix minor bugs on Add Path Selection Mode 93/36993/7
Claudio D. Gasparini [Fri, 1 Apr 2016 08:40:26 +0000 (10:40 +0200)]
BUG-4827: Fix minor bugs on Add Path Selection Mode

Fix minor bugs on Add Path Selection Mode.
PathId should increment only if route didn't exist previously.

Change-Id: I3c06eade75d1d87f5d0808e0b210975ae61b6490
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoDisable the original TestHelper and use the new MDSAL-it-base classes 14/36414/8
Kevin Wang [Wed, 16 Mar 2016 22:47:47 +0000 (15:47 -0700)]
Disable the original TestHelper and use the new MDSAL-it-base classes

Change-Id: Ic2e626a2bc56b2cda0e776fc42d1b8bbbe88b6ed
Signed-off-by: Kevin Wang <kevixw@gmail.com>
8 years agoBug 5623 - BGP-LS Topology provider is not able to handle MPLS TE LSP NLRI Type 21/37021/1
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>
(cherry picked from commit c3d74674d4c5e2098680ba54c018a9a08eeba400)

8 years agoBug 5564: BGP-LS: Bad handling of unknown NLRI type cause NPE 81/36881/2
Milos Fabian [Wed, 30 Mar 2016 12:19:02 +0000 (14:19 +0200)]
Bug 5564: BGP-LS: Bad handling of unknown NLRI type cause NPE

Fixed destination extractor for TE LSP NLRI Type.

Change-Id: Ie1a26e78d71d289ae2b63bd3c7a5d7167c50ee99
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG-4827: Base Path Selection mode test implementation 52/36552/4
Claudio D. Gasparini [Mon, 21 Mar 2016 09:53:38 +0000 (10:53 +0100)]
BUG-4827: Base Path Selection mode test implementation

Implementation of test for base path selection mode

Change-Id: I49a29e10a4b01f63e06aea0cb175a6eec6fb5487
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: Introduce Avertise All Paths Selecetion Mode 30/35930/16
Claudio D. Gasparini [Tue, 8 Mar 2016 13:15:38 +0000 (14:15 +0100)]
BUG-4827: Introduce Avertise All Paths Selecetion Mode

Introduce Avertise All Paths Selecetion Mode

Change-Id: I744cf2722828234203fe3830a753ec1e0259c9ee
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: Introduce Advertise N Paths Selection Mode 33/35933/17
Claudio D. Gasparini [Sat, 5 Mar 2016 21:38:16 +0000 (22:38 +0100)]
BUG-4827: Introduce Advertise N Paths Selection Mode

Introduce Advertise N Paths Selection Mode

Change-Id: Ia92570fe60e73a0a34d20668aea21322c1746d76
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug-5500: Check Application Peer's bgp-rib-id config attribute against BGP Peer's... 85/36785/4
Ajay [Mon, 28 Mar 2016 18:11:42 +0000 (18:11 +0000)]
Bug-5500: Check Application Peer's bgp-rib-id config attribute against BGP Peer's host attribute for conflicts
- inject BGPPeerRegistry into BGPApplicationPeerModule as optional dependency
- insert ApplicationPeer into BGPPeerRegistry during BGPApplicationPeerModule to check for address conflict with existing BGP peers
- update BGPApplicationPeerModule unit-test

Change-Id: I8f612cf9eed02cf2a6b5e4832d2c8f9940d415a8
Signed-off-by: Ajay <ajayl.bro@gmail.com>
8 years agoEnable Maven Site generation 88/36888/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 03/36903/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 43/36843/2
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 42/36842/2
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 agoDo not install or deploy the karaf artifact 73/36373/2
Thanh Ha [Wed, 16 Mar 2016 23:20:13 +0000 (19:20 -0400)]
Do not install or deploy the karaf artifact

The karaf artifact is only used for testing. It does not need to be
released to the world.

Change-Id: I11aef8e696b1df41550f6e574a8e042d81cf5582
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 5457 - BGP-LU update from app peer to exabgp peer: Labels missing 33/36433/3
Milos Fabian [Fri, 18 Mar 2016 11:09:47 +0000 (12:09 +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 4731: Routes from BGP application peer not populated to example-ipv4-topology... 20/36720/3
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>
(cherry picked from commit c1d773731c031a1775fbda56a5551ecdca3a8e55)

8 years agoBug 5467 - BGP-LS topology provider NPE 19/36719/3
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>
(cherry picked from commit c536a6cea582a90af3644a8f21886a2d0ee508be)

8 years agoBug 5030: BGP Benchmark app - unit tests 97/36497/3
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 agoAdd MP capabilities extension to Open message 45/36245/3
Milos Fabian [Mon, 14 Mar 2016 11:35:10 +0000 (12:35 +0100)]
Add MP capabilities extension to Open message

Extend Open messages model used in BMP Peer Up notification
with multi protocol extensions capabilities.

Change-Id: I0cdc8d7b812db4ecee6e766b9d6cbd95477c3197
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5030: BGP Application Peer beanchmark app 96/36496/2
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 agoMake MP capabilities reusable 85/36185/4
Milos Fabian [Mon, 14 Mar 2016 10:04:25 +0000 (11:04 +0100)]
Make MP capabilities reusable

Move MP capabilities model from augmentation to
grouping so the model can be reused.
We need it in BMP.

Change-Id: I3f458bed807a34d7ca73a1fe238b379ed42f62ae
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBUG 5031: 18/36218/5
Omair [Mon, 14 Mar 2016 20:12:55 +0000 (13:12 -0700)]
BUG 5031:
Bring order into the BGP-LS encoders/decoders by introducing simple codecs
and their registers for BGP-LS's NLRI types, to make it more extensible.

Change-Id: Idd0740db3d3dc1828b5d5459a75bf0799b70d6ef
Signed-off-by: Omair <of8826@att.com>
8 years agoBUG-5548: NH serializer removal 32/36532/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>
8 years agoBUG-5548: Wrong NH handler picked up 84/36484/3
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>
8 years agoAdd missing check of present on optional variable 48/36448/2
Claudio D. Gasparini [Fri, 18 Mar 2016 15:18:58 +0000 (16:18 +0100)]
Add missing check of present on optional variable

Check whether optional best path is present before proceed
to write the route

Change-Id: I531c73a6c3c4e8425e0620ac17e5aff90bd2981e
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: Modify ipv4-routes list model, to include path-id as part of the key 09/36109/10
Claudio D. Gasparini [Fri, 11 Mar 2016 10:28:36 +0000 (11:28 +0100)]
BUG-4827: Modify ipv4-routes list model, to include path-id as part of the key

Add path Id as a part of the key for ipv4-routes. This will force us to use
path-Id when writing on Loc-Rib even when add-path selection mode are not
used. Therefore we need to adapt the code on base selection mode
to take in consideration wheter model can support Add-path or not
and proced accordingly.

Change-Id: I94bc6523ff788c236008df892569d3ea04cadb65
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoPeerTest update, unsupported Afi/Safi RR request 97/36397/2
Iveta Halanova [Thu, 17 Mar 2016 13:33:50 +0000 (14:33 +0100)]
PeerTest update, unsupported Afi/Safi RR request

Change-Id: Icb77127ad8a8c72bb8924a38222c7a51eee5f853
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBGPSessionImpl unhandled msg 93/36393/4
Iveta Halanova [Thu, 17 Mar 2016 12:37:44 +0000 (13:37 +0100)]
BGPSessionImpl unhandled msg

Loging unhandled msg and avoiding class cast exception.

Change-Id: I4f917cc783918bb7cc00cdbc29393a2b09cceb07
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-4827: Introduce add path tables support and Path Id to rib support 99/36099/10
Claudio D. Gasparini [Sat, 5 Mar 2016 21:18:27 +0000 (22:18 +0100)]
BUG-4827: Introduce add path tables support and Path Id to rib support

On session up peer will advertise supported add path tables,
we store them on data store and introduce them to ribsupport
for future filtering of route advertise.
Also we introduce a method for extract Path Id from prefix received routes,
which will be used by Add Path selection modes.

Change-Id: I118e40913086aef71f1f72600c9b66de65b858b5
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBUG-4827: Path Selection mode Config Subsystem integration 52/36052/10
Claudio D. Gasparini [Sat, 5 Mar 2016 21:13:42 +0000 (22:13 +0100)]
BUG-4827: Path Selection mode Config Subsystem integration

Create new module for path selection mode allowing us to
integrate add paths selections mode  in a close future.

Change-Id: I36ec3e8267137505f76d6ee7230d9ce9aeea2714
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBug: 5287 19/36319/3
Ajay [Wed, 16 Mar 2016 20:03:29 +0000 (20:03 +0000)]
Bug: 5287

Added support for multiple instances of data-change-counter
- Changed counter type to list in data-change-counter yang model
- Added counter-id field to module config yang model
- Removed singleton behavior for the module
- Updated TopologyDataChangeCounter to update count using corresponding counter-id
- Updated unit-tests

Change-Id: I15f43faa622c502dfa3837da1a3bed7f4e9c4c1b
Signed-off-by: Ajay <ajayl.bro@gmail.com>
8 years agoCreate two new interfaces for Export policies 01/36001/9
Claudio D. Gasparini [Tue, 15 Mar 2016 10:51:16 +0000 (11:51 +0100)]
Create two new interfaces for Export policies

Create two new interfaces for Export policies to separate
from implementation, and be used on different module without
suffer cyclic dependency.
Also we move another classes that will be required by other
modules.

Change-Id: I17265d3434e7302892ea0b5e5b06c88e54b39014
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoBGPPeerModule type change 36/36236/1
Iveta Halanova [Tue, 15 Mar 2016 10:01:37 +0000 (11:01 +0100)]
BGPPeerModule type change

AfiSafiKey -> BgpTableType

Change-Id: I341dcdf01fc3e4919207844e93fcb7b679947f0a
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-4592: RR message operation impl 80/36180/7
Iveta Halanova [Mon, 14 Mar 2016 06:48:43 +0000 (07:48 +0100)]
BUG-4592: RR message operation impl

Added handling when RR msg is received.
Updated session statistics and unit tests.

Change-Id: I213f27c38244cf6c5fee11074f4cad4ba7012b90
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-4592: Route Refresh message implementation 23/35923/7
Iveta Halanova [Tue, 8 Mar 2016 11:37:38 +0000 (12:37 +0100)]
BUG-4592: Route Refresh message implementation

Updated yang model and added new notification.
Implemented parser and registered.
Updated MultiprotocolCapabilitiesUtil class.
Updated and added unit tests.

Change-Id: If389ff6e793bbbae49e8d2fb16071397e121518a
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-4592: Route Refresh Capability Config subystem 76/35876/7
Iveta Halanova [Mon, 7 Mar 2016 13:39:48 +0000 (14:39 +0100)]
BUG-4592: Route Refresh Capability Config subystem

Added possibility to advertize RR Capability in open messge
and to configure this capability in ODL for peer.
Created Util class for common afi, safi handling with MP and with CParameters constant.
Updated and added tests.

Change-Id: Iabe3d96d49368be6870d4fffd207ca15021dcfd0
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoRework BGPSessionImpl test 54/35554/5
Milos Fabian [Mon, 29 Feb 2016 15:23:32 +0000 (16:23 +0100)]
Rework BGPSessionImpl test

Use Embedded Channel instead of mocking it.
Added simple channel handler for written message
collection.

Change-Id: I90e9906be61d02c8dd3636f8d881d6e9b7a3bd3d
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoFix BGP-FS NPE 26/35626/3
Milos Fabian [Wed, 2 Mar 2016 20:31:32 +0000 (21:31 +0100)]
Fix BGP-FS NPE

Fixed destination port serialization (BI->BA).

Change-Id: Ideff7dfc53e1860d78346afa1f813e013f81f9be
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoBug 5453 - PCEP-SR capability is not send in Open Message 77/35677/2
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>
8 years agoBUG-4825: OpenConfig integration 84/35684/1
Iveta Halanova [Thu, 3 Mar 2016 13:08:51 +0000 (14:08 +0100)]
BUG-4825: OpenConfig integration

added afi/safi into OpenConfifUtil provider

Change-Id: I0787a9bcfe78eb4422b9dc24649dff3df30159a0
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoFix BGP session statistics preferences colletion 53/35553/4
Milos Fabian [Mon, 29 Feb 2016 15:21:45 +0000 (16:21 +0100)]
Fix BGP session statistics preferences colletion

Change-Id: Ic34762ec2462bedea9789d704ed399e495e91fef
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoClean up Extended Messages Capability 52/35552/4
Milos Fabian [Mon, 29 Feb 2016 12:12:32 +0000 (13:12 +0100)]
Clean up Extended Messages Capability

The BGP extended message capability is represented
by empty container. Define constatnt for the capability.
Use it in a parser and unit tests.
Clean-up extended message capability unit tests.

Change-Id: I8a4a5785e6cb994f45cfd7c9efee68b5a24b97ac
Signed-off-by: Milos Fabian <milfabia@cisco.com>
8 years agoRemove unused class in bgp-rib 51/35551/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-4825: BGP L3VPN configuration 39/35539/5
Iveta Halanova [Mon, 22 Feb 2016 14:11:27 +0000 (15:11 +0100)]
BUG-4825: BGP L3VPN configuration

Added and enabled configuration.
Tested with odl, app peer and exabgp peer.
Corrected RD and labels extraction in RIB Support.

Change-Id: Iefb45ba3aad13428bda11e52222877d51cec6a7a
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoRouteDistinguisher missing builder 38/35538/5
Iveta Halanova [Mon, 29 Feb 2016 09:57:26 +0000 (10:57 +0100)]
RouteDistinguisher missing builder

created 2 new types and used in route distinguisher union.
implemented builder and updated util and test classes.

Change-Id: Iddc151f25ca5614ccdb0c18de2eeed65d7b50c2a
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
8 years agoBUG-2825: optimize NLRI ipv4/ipv6 prefix parsing 26/35426/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>
8 years agoBUg-2825: optimize prefixForBytes/prefixForByteBuf 21/35421/5
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>
8 years agoBUG-2825: use IetfInetUtil to instantiate addresses 17/34917/15
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>
8 years agoDo not use Lists.newArrayList() 25/35425/3
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>
8 years agoBUG-4831: container should be presence 57/35457/1
Robert Varga [Fri, 26 Feb 2016 10:29:42 +0000 (11:29 +0100)]
BUG-4831: container should be presence

If we do not make it a presence container, datastore will remove it
because it is empty.

Change-Id: I2b5e3fe2aac4f3c4a72af209e091ed40f910ed96
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoUpdate clearTable method name to createEmptyTableStructure 51/34251/12
Claudio D. Gasparini [Mon, 8 Feb 2016 11:40:54 +0000 (12:40 +0100)]
Update clearTable method name to createEmptyTableStructure

Update clearTable method name to createEmptyTableStructure which
is more appropiate

Change-Id: I5992773e169edb538bac655a833149dda1220c3c
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
8 years agoPre-size NLRI lists 24/35424/2
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>