use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.rev171025.srp.object.Srp in project bgpcep by opendaylight.
the class PCCTriggeredSyncTest method createTriggerMsg.
private static Message createTriggerMsg() {
final UpdatesBuilder rb = new UpdatesBuilder();
// create PCUpd with mandatory objects and LSP object set to 1
final SrpBuilder srpBuilder = new SrpBuilder();
srpBuilder.setIgnore(false);
srpBuilder.setProcessingRule(false);
srpBuilder.setOperationId(new SrpIdNumber(1L));
final Srp srp = srpBuilder.build();
rb.setSrp(srp);
final Lsp lsp = new LspBuilder().setPlspId(new PlspId(0L)).setSync(Boolean.TRUE).build();
rb.setLsp(lsp);
final PathBuilder pb = new PathBuilder();
rb.setPath(pb.build());
final PcupdMessageBuilder ub = new PcupdMessageBuilder();
ub.setUpdates(Collections.singletonList(rb.build()));
return new PcupdBuilder().setPcupdMessage(ub.build()).build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.rev171025.srp.object.Srp in project bgpcep by opendaylight.
the class MsgBuilderUtil method createSrp.
public static Srp createSrp(final long srpId) {
final SrpBuilder srpBuilder = new SrpBuilder();
srpBuilder.setProcessingRule(false);
srpBuilder.setIgnore(false);
srpBuilder.setOperationId(new SrpIdNumber(srpId));
return srpBuilder.build();
}
Aggregations