@Test public void test_NetworkElementsDelete() throws Exception { writeBaseNetworkElements(); InstanceIdentifier<NetworkElements> iid = InstanceIdentifier.builder(NetworkElements.class).build(); WriteTransaction wtx = dataBroker.newWriteOnlyTransaction(); wtx.delete(LogicalDatastoreType.CONFIGURATION, iid); wtx.submit().get(); NetworkElements nes = neProvider.getNetworkElements(); assertEquals(new NetworkElementsBuilder().build(), nes); verifyEmptyLocations(); }
@VisibleForTesting synchronized NetworkElements getNetworkElements() { return networkElements; }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized NetworkElements getNetworkElements() { return networkElements; } }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized NetworkElements getNetworkElements() { return networkElements; } NeLocationProvider(DataBroker dataBroker); }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized NetworkElements getNetworkElements() { return networkElements; } NeLocationProvider(DataBroker dataBroker); @Override void close(); synchronized void onEndpointsChange(Collection<DataTreeModification<AddressEndpoint>> changes); @Override synchronized void onDataTreeChanged(Collection<DataTreeModification<NetworkElements>> changes); }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized NetworkElements getNetworkElements() { return networkElements; } NeLocationProvider(DataBroker dataBroker); @Override void close(); synchronized void onEndpointsChange(Collection<DataTreeModification<AddressEndpoint>> changes); @Override synchronized void onDataTreeChanged(Collection<DataTreeModification<NetworkElements>> changes); static final String NE_LOCATION_PROVIDER_NAME; }