use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.OperationResult in project bgpcep by opendaylight.
the class PCEPTopologySessionListener method triggerResyncronization.
private ListenableFuture<OperationResult> triggerResyncronization(final TriggerSyncArgs input) {
LOG.trace("Trigger Resynchronization {}", input);
markAllLspAsStale();
updatePccState(PccSyncState.PcepTriggeredResync);
final PcupdMessageBuilder pcupdMessageBuilder = new PcupdMessageBuilder(MESSAGE_HEADER);
final SrpIdNumber srpIdNumber = createUpdateMessageSync(pcupdMessageBuilder);
final Message msg = new PcupdBuilder().setPcupdMessage(pcupdMessageBuilder.build()).build();
return sendMessage(msg, srpIdNumber, null);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.OperationResult in project bgpcep by opendaylight.
the class PCEPRequest method done.
synchronized void done() {
OperationResult result;
switch(this.state) {
case UNSENT:
result = OperationResults.UNSENT;
break;
case UNACKED:
result = OperationResults.NOACK;
break;
case DONE:
return;
default:
return;
}
done(result);
}
Aggregations