BUG-3300 : Fixed BGP transitive attribute filtering 61/22361/9
authorClaudio D. Gasparini <cgaspari@cisco.com>
Thu, 11 Jun 2015 12:56:32 +0000 (14:56 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 12 Jun 2015 12:15:41 +0000 (12:15 +0000)
commit1114255dc1be6586cef529178e1b1b3078f15b71
tree0140035cea4e527e45f51860f76cc87cdcdfeacf
parentcf7ba40c55665e5cddb3b4c617ae7e518c94c237
BUG-3300 : Fixed BGP transitive attribute filtering

Namespace in AttributeOperation were hardcode therefore any transitive
attribute with different namespace(inet..) were not valid, reason why
FromExternalImportPolicy did not return any attribute, causing a NPE.
Fixed them by matching extension QName to corresponding Attribute.

Change-Id: Ic3ccf5eb0b1d181baaf8ea5b6dea6f84828b92a4
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/AttributeOperations.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/FromExternalImportPolicyTest.java [new file with mode: 0644]