Eliminate AsPathSegmentParser 41/105641/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 24 Apr 2023 09:30:18 +0000 (11:30 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 24 Apr 2023 16:46:21 +0000 (18:46 +0200)
commit55dcc6ef3f3b7704437bf6517cb25c6806793c28
tree5d375a8e8b9fd3250cd12943ab2601d3fa43296a
parent2d0dfdf6a08e6a7b3e1fba9fd7f75fd9cce5060b
Eliminate AsPathSegmentParser

This is just a utility class, which we can integrate into
AsPathAttributeParser. This allows us to eliminate a few checks in
parsing path and a switch dispatch in serialization path.

Change-Id: Ib7058d32a37339531e2ccb8874c1e3914b57fd72
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AsPathAttributeParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AsPathSegmentParser.java [deleted file]