Reduce PathKey serialization duplication 59/86759/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 18:45:13 +0000 (19:45 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Jan 2020 18:45:13 +0000 (19:45 +0100)
commit9e3dd6ee613437cefbc0a93ad31c18520ff56226
tree8f3f7c240c0aed780d131b67a3b31d3098bce52e
parent12b06012259c6609c4b40488c8611a9431a39643
Reduce PathKey serialization duplication

PathKeyUtils.serializePathKey() can take PathKeySubobject, which
makes it readily reusable in RROPathKey128SubobjectParser, reducing
amount of duplication we have.

Change-Id: I23f5c58842c2a1ef073ef3f90b6224247a7a195f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
rsvp/impl/src/main/java/org/opendaylight/protocol/rsvp/parser/impl/subobject/rro/RROPathKey128SubobjectParser.java
rsvp/spi/src/main/java/org/opendaylight/protocol/rsvp/parser/spi/subobjects/PathKeyUtils.java