BUG-4634: Prefix in withdrawn list is not ignored when announced in same msgUpd. 54/29754/1
authorClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 16 Nov 2015 11:30:36 +0000 (12:30 +0100)
committerClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 16 Nov 2015 13:58:30 +0000 (14:58 +0100)
commit2b1942bb6a5dd50f5a60b418986b64409201a509
tree52516e2b880751f64f18eb179b7eb220ea9083bd
parente360530c9cfe031bb9deeb11e334e45477c1943f
BUG-4634: Prefix in withdrawn list is not ignored when announced in same msgUpd.

An UPDATE message SHOULD NOT include the same address prefix in the
WITHDRAWN ROUTES and Network Layer Reachability Information fields.
However, a BGP speaker MUST be able to process UPDATE messages in
this form.  A BGP speaker SHOULD treat an UPDATE message of this form
as though the WITHDRAWN ROUTES do not contain the address prefix.
Fix by ingore common NLRI on withdrawn router

Change-Id: Ic9ebd3ce13f042f0dfcd2b28815442f8484add16
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/PeerTest.java