Distinguish between ignored and erroring attributes 50/78350/9
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 2 Dec 2018 23:49:24 +0000 (00:49 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Dec 2018 16:34:40 +0000 (17:34 +0100)
commita480d5621a127eb8fd9da92cd2e4d3a2ef193f6a
treedeb290f09294e36e6a1c950dad9f1ffb046d7e99
parentdbb2667daa0bcb6c5241aeda9a78b7dd3b30c21f
Distinguish between ignored and erroring attributes

MP_REACH/MP_UNREACH attributes need to cause a BGPDocumentedException
to be thrown when in RFC7606 mode. This adds that capability and
makes parser report it.

Change-Id: Iabbd16e64332ad9ffd823e942262b7ba324ad328
JIRA: MDSAL-359
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/ReachAttributeParser.java
bgp/parser-impl/src/test/java/org/opendaylight/protocol/bgp/parser/impl/BGPParserTest.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/AttributeParser.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/pojo/SimpleAttributeRegistry.java
bgp/parser-spi/src/test/java/org/opendaylight/protocol/bgp/parser/spi/pojo/SimpleRegistryTest.java