@Test public void testUpdateEndpointRemoveLocation() throws Exception { EndpointHelper.updateEndpointRemoveLocation(endpoint, writeTransaction); verify(submitFuture).checkedGet(); }
public static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx) { EndpointBuilder epBuilder = new EndpointBuilder(endpoint); Endpoint newEp = epBuilder.build(); epBuilder.removeAugmentation(OfOverlayContext.class); rwTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.endpointIid(newEp.getL2Context(), newEp.getMacAddress()), newEp); DataStoreHelper.submitToDs(rwTx); }
EndpointHelper { public static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx) { EndpointBuilder epBuilder = new EndpointBuilder(endpoint); Endpoint newEp = epBuilder.build(); epBuilder.removeAugmentation(OfOverlayContext.class); rwTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.endpointIid(newEp.getL2Context(), newEp.getMacAddress()), newEp); DataStoreHelper.submitToDs(rwTx); } }
EndpointHelper { public static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx) { EndpointBuilder epBuilder = new EndpointBuilder(endpoint); Endpoint newEp = epBuilder.build(); epBuilder.removeAugmentation(OfOverlayContext.class); rwTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.endpointIid(newEp.getL2Context(), newEp.getMacAddress()), newEp); DataStoreHelper.submitToDs(rwTx); }  }
EndpointHelper { public static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx) { EndpointBuilder epBuilder = new EndpointBuilder(endpoint); Endpoint newEp = epBuilder.build(); epBuilder.removeAugmentation(OfOverlayContext.class); rwTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.endpointIid(newEp.getL2Context(), newEp.getMacAddress()), newEp); DataStoreHelper.submitToDs(rwTx); }  static Endpoint lookupEndpoint(EndpointKey epKey, ReadOnlyTransaction transaction); static void updateEndpointWithLocation(Endpoint endpoint, String nodeIdString, String nodeConnectorIdString,
            ReadWriteTransaction rwTx); static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx); }
EndpointHelper { public static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx) { EndpointBuilder epBuilder = new EndpointBuilder(endpoint); Endpoint newEp = epBuilder.build(); epBuilder.removeAugmentation(OfOverlayContext.class); rwTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.endpointIid(newEp.getL2Context(), newEp.getMacAddress()), newEp); DataStoreHelper.submitToDs(rwTx); }  static Endpoint lookupEndpoint(EndpointKey epKey, ReadOnlyTransaction transaction); static void updateEndpointWithLocation(Endpoint endpoint, String nodeIdString, String nodeConnectorIdString,
            ReadWriteTransaction rwTx); static void updateEndpointRemoveLocation(Endpoint endpoint, ReadWriteTransaction rwTx);  }