Introduce BGPTreatAsWithdrawException 51/78351/12
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Dec 2018 00:10:55 +0000 (01:10 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 22:17:55 +0000 (23:17 +0100)
commitf12c3c15054b3ca649a851cd6b1f68520ee5fdd6
tree11c4aa752b6a916ccf7521a144e1bf3aaa0136f3
parentce089ceb78ceb6fa3b5d9cb74c132b5373cb963a
Introduce BGPTreatAsWithdrawException

Attribute parsers need to be able to report that the attribute
failed to parse and the UPDATE message needs to enter
treat-as-withdraw error recovery.

BGPTreatAsWithdrawException holds this information and can be
reported from individual attribute parsers.

Change-Id: I459eb70692cde1035ca03110f414acb60d302abd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/parser-api/src/main/java/org/opendaylight/protocol/bgp/parser/BGPTreatAsWithdrawException.java [new file with mode: 0644]
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/RevisedErrorHandling.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/BgpTestActivator.java
bgp/parser-spi/src/test/java/org/opendaylight/protocol/bgp/parser/spi/pojo/SimpleRegistryTest.java