BUG-4634: Prefix in withdrawn list is not ignored when announced in same msgUpd. 43/29743/4
authorClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 16 Nov 2015 11:30:36 +0000 (12:30 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 16 Nov 2015 13:34:07 +0000 (13:34 +0000)
commit04633daf114ccb6e5a8e83f39229d3dc3f41ab36
tree551ca7447218854377dfbc07c94a951bfb951d1c
parent5007a6bfd81df2b5ba2ffca02118602cf6c3929d
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