Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Bugzilla Migration
-
None
-
Operating System: Linux
Platform: PC
-
1663
Description
I got exception when I call the addLsp RPC to initiate LSP to PCC. The PCC I am using is the PCCMock.java in the pcep-testtool project.
11:24:57.120 [nioEventLoopGroup-3-1] DEBUG o.o.p.p.i.PCEPByteToMessageDecoder - Failed to decode protocol message
org.opendaylight.protocol.pcep.spi.PCEPDeserializerException: Processed flag is set
at org.opendaylight.protocol.pcep.ietf.initiated00.CInitiated00SrpObjectParser.parseObject(CInitiated00SrpObjectParser.java:51) ~[classes/:na]
at org.opendaylight.protocol.pcep.ietf.stateful07.Stateful07SrpObjectParser.parseObject(Stateful07SrpObjectParser.java:1) ~[classes/:na]
I think the root cause is because the processed flag is hardcoded as TRUE in the addLsp RPC as following. Please double check if the processed flag should be set to TRUE or not in the PCInitiate message.
Stateful07TopologySessionListener.java:
public synchronized ListenableFuture<OperationResult> addLsp(final AddLspArgs input) {
……
rb.setSrp(new SrpBuilder().setOperationId(nextRequest()).setProcessingRule(Boolean.TRUE).build());