use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.ll.graceful.restart.rev181112.Config1Builder in project bgpcep by opendaylight.
the class GracefulRestartUtilTest method getLlGracefulTimersTest.
@Test
public void getLlGracefulTimersTest() {
final List<AfiSafi> afiSafi = new ArrayList<>();
afiSafi.add(new AfiSafiBuilder().setAfiSafiName(IPV4UNICAST.class).setGracefulRestart(new GracefulRestartBuilder().setConfig(new ConfigBuilder().addAugmentation(new Config1Builder().setLlGracefulRestart(new LlGracefulRestartBuilder().setConfig(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.ll.graceful.restart.rev181112.afi.safi.ll.graceful.restart.ll.graceful.restart.ConfigBuilder().setLongLivedStaleTime(new Uint24(Uint32.valueOf(STALE_TIME))).build()).build()).build()).build()).build()).build());
final Map<TablesKey, Integer> llGracefulTimers = GracefulRestartUtil.getLlGracefulTimers(afiSafi, this.tableRegistry);
assertNotNull(llGracefulTimers);
assertEquals(1, llGracefulTimers.size());
assertEquals(STALE_TIME, llGracefulTimers.get(IPV4_KEY).intValue());
}
Aggregations