Update Linkstate attribute parser 97/4497/5
authorRobert Varga <rovarga@cisco.com>
Tue, 21 Jan 2014 12:59:59 +0000 (13:59 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 21 Jan 2014 16:36:11 +0000 (17:36 +0100)
commit15fa8d6fdcb4f061fce29454ffa7dc36f4aa1ac7
treec00946b490f51196568993866c9e8ba2184ee79c
parent5494e3dc85de34d3ab0cab1fa1a7a95861235392
Update Linkstate attribute parser

This updates the parser to check which NLRI type is being handled and
set attributes accordingly.

Do not trigger deserialization errors when an unexpected TLV is seen in
the attribute, just emit a warning.

Change-Id: I5be1bae5448ae299082023b4fd8f424645236c63
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/LinkstateAttributeParser.java
bgp/linkstate/src/test/java/org/opendaylight/protocol/bgp/linkstate/LinkstateAttributeParserTest.java