use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.rev200720.stateful.capability.tlv.Stateful in project bgpcep by opendaylight.
the class SyncOptimizationsCapabilityTlvParser method serializeFlags.
@Override
protected BitArray serializeFlags(final Stateful sct) {
final BitArray flags = new BitArray(FLAGS_F_LENGTH);
final Stateful1 sfi = sct.augmentation(Stateful1.class);
final org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.sync.optimizations.rev200720.Stateful1 sf2 = sct.augmentation(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.sync.optimizations.rev200720.Stateful1.class);
if (sf2 != null) {
flags.set(F_FLAG_OFFSET, sf2.getTriggeredInitialSync());
flags.set(D_FLAG_OFFSET, sf2.getDeltaLspSyncCapability());
flags.set(T_FLAG_OFFSET, sf2.getTriggeredResync());
flags.set(S_FLAG_OFFSET, sf2.getIncludeDbVersion());
}
if (sfi != null) {
flags.set(I_FLAG_OFFSET, sfi.getInitiation());
}
flags.set(U_FLAG_OFFSET, sct.getLspUpdateCapability());
return flags;
}
Aggregations