-
- public void tearDown() {
- this.reg.close();
- }
-
- protected Optional<Topology> getTopology(final InstanceIdentifier<Topology> topoIID) {
- final ReadTransaction rTx = getDataBroker().newReadOnlyTransaction();
- try {
- return rTx.read(LogicalDatastoreType.OPERATIONAL, topoIID).get();
- } catch (InterruptedException | ExecutionException e) {
- fail();
- }
- return Optional.absent();
- }
-