use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180321.NeighborGracefulRestartStateAugmentationBuilder in project bgpcep by opendaylight.
the class StateProviderImplTest method buildGracefulRestart.
private GracefulRestart buildGracefulRestart() {
final NeighborGracefulRestartStateAugmentationBuilder gracefulAugmentation = new NeighborGracefulRestartStateAugmentationBuilder();
gracefulAugmentation.setPeerRestarting(false);
gracefulAugmentation.setLocalRestarting(false);
gracefulAugmentation.setPeerRestartTime(0);
gracefulAugmentation.setLocalRestarting(true).setPeerRestarting(true).setPeerRestartTime(this.restartTime);
final GracefulRestart gracefulRestart = new org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.graceful.restart.GracefulRestartBuilder().setState(new org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.graceful.restart.graceful.restart.StateBuilder().addAugmentation(NeighborGracefulRestartStateAugmentation.class, gracefulAugmentation.build()).build()).build();
return gracefulRestart;
}
Aggregations