Provide a way to convert MpReach to MpUnreach 99/78799/4
authorMatej Perina <matej.perina@pantheon.tech>
Fri, 14 Dec 2018 14:04:10 +0000 (15:04 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 14 Dec 2018 17:06:33 +0000 (17:06 +0000)
commitb7e74c134a18ba9fd55bbf5b5c448ac092978d7a
treed5fc8d19b6a179e51ba37c8188c1abda665d8404
parent3d8d7bd80d8ac00b64cfda0f67442dcfa7d76422
Provide a way to convert MpReach to MpUnreach

BGPUpdateParser needs the ability to convert MP_REACH attributes
to MP_UNREACH equivalents, potentially merging an existing
MP_UNREACH attribute into the mix.

This patch adds that capability by adding teach NlriRegistry to
perform the conversion.

JIRA: BGPCEP-359
Change-Id: I3f3330145b1e4851335f44a0f9183cd1b6c83ea5
Signed-off-by: Matej Perina <matej.perina@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/extensions/evpn/src/main/java/org/opendaylight/protocol/bgp/evpn/impl/nlri/EvpnNlriParser.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/NlriParser.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/NlriRegistry.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/pojo/SimpleNlriRegistry.java