use of org.opendaylight.protocol.pcep.ietf.stateful.PCEPStatefulCapability in project bgpcep by opendaylight.
the class PCCIncrementalSyncTest method getCapabilities.
@Override
protected List<PCEPCapability> getCapabilities() {
final List<PCEPCapability> caps = new ArrayList<>();
caps.add(new PCEPStatefulCapability(true, true, true, false, false, true, true));
return caps;
}
use of org.opendaylight.protocol.pcep.ietf.stateful.PCEPStatefulCapability in project bgpcep by opendaylight.
the class PCEPStatefulCapabilityTest method testPCEPStatefulCapability.
@Test
public void testPCEPStatefulCapability() {
final PCEPStatefulCapability sspf = new PCEPStatefulCapability(true, true, true, true, false, true, false);
assertTrue(sspf.isActive());
assertTrue(sspf.isInstant());
assertTrue(sspf.isStateful());
assertFalse(sspf.isTriggeredResync());
assertTrue(sspf.isTriggeredSync());
assertTrue(sspf.isDeltaLspSync());
assertTrue(sspf.isIncludeDbVersion());
final TlvsBuilder builder = new TlvsBuilder();
sspf.setCapabilityProposal(null, builder);
assertEquals(EXPECTED_TLVS, builder.build());
}
Aggregations