import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.ListenableFuture;
.withId(namedUuid)
.value(name, testBridgeName)
.value(flood_vlans, Sets.newHashSet(100, 101, 4001))
- .value(externalIds, Maps.newHashMap(ImmutableMap.of("key","value"))))
+ .value(externalIds, ImmutableMap.of("key","value")))
.add(op.comment("Inserting Bridge br-int"))
.add(op.update(bridge)
.set(fail_mode, "secure")
.where(name.opEqual(testBridgeName))
.build())
.add(op.mutate(bridge)
- .addMutation(externalIds, Mutator.INSERT, Maps.newHashMap(ImmutableMap.of("key2","value2")))
+ .addMutation(externalIds, Mutator.INSERT, ImmutableMap.of("key2","value2"))
.where(name.opEqual(testBridgeName))
.build())
.add(op.mutate(ovsTable)
import org.slf4j.LoggerFactory;
import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.ListenableFuture;
public void testTypedBridgeCreate() throws IOException, InterruptedException, ExecutionException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
TestBridge rBridge = ovs.createTypedRowWrapper(TestBridge.class);
rBridge.setName(testBridgeName);
- rBridge.setStatus(Maps.newHashMap(ImmutableMap.of("key","value")));
+ rBridge.setStatus(ImmutableMap.of("key","value"));
rBridge.setFloodVlans(Sets.newHashSet(34));
GenericTableSchema ovsTable = dbSchema.table("Open_vSwitch", GenericTableSchema.class);
import org.slf4j.LoggerFactory;
import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.util.concurrent.ListenableFuture;
private void createTypedBridge() throws IOException, InterruptedException, ExecutionException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
Bridge bridge = ovs.createTypedRowWrapper(Bridge.class);
bridge.setName(testBridgeName);
- bridge.setStatus(Maps.newHashMap(ImmutableMap.of("key","value")));
+ bridge.setStatus(ImmutableMap.of("key","value"));
bridge.setFloodVlans(Sets.newHashSet(34));
OpenVSwitch openVSwitch = ovs.createTypedRowWrapper(OpenVSwitch.class);