/** * @see ListNetworksOptions#trafficType */ public static ListNetworksOptions trafficType(TrafficType trafficType) { ListNetworksOptions options = new ListNetworksOptions(); return options.trafficType(trafficType); }
/** * @see ListNetworksOptions#trafficType */ public static ListNetworksOptions trafficType(TrafficType trafficType) { ListNetworksOptions options = new ListNetworksOptions(); return options.trafficType(trafficType); }
/** * @see ListNetworksOptions#trafficType */ public static ListNetworksOptions trafficType(TrafficType trafficType) { ListNetworksOptions options = new ListNetworksOptions(); return options.trafficType(trafficType); }
public void testTrafficType() { ListNetworksOptions options = new ListNetworksOptions().trafficType(TrafficType.GUEST); assertEquals(ImmutableList.of("Guest"), options.buildQueryParameters().get("traffictype")); }
public void testTrafficType() { ListNetworksOptions options = new ListNetworksOptions().trafficType(TrafficType.GUEST); assertEquals(ImmutableList.of("Guest"), options.buildQueryParameters().get("traffictype")); }
protected void deleteNetworksInZoneWithVlanId(String zoneId, String vlanId) { Set<Network> networks = domainAdminClient.getNetworkClient().listNetworks( ListNetworksOptions.Builder .isDefault(false) .isSystem(false) .zoneId(zoneId) .trafficType(TrafficType.GUEST) ); // Warning: the vlan id is not set in the response - using an workaround URI broadcastUri = URI.create("vlan://" + vlanId); for (Network net : networks) { if (broadcastUri.equals(net.getBroadcastURI())) { String jobId = domainAdminClient.getNetworkClient().deleteNetwork(net.getId()); adminJobComplete.apply(jobId); } } }
protected void deleteNetworksInZoneWithVlanId(String zoneId, String vlanId) { Set<Network> networks = domainAdminClient.getNetworkApi().listNetworks( ListNetworksOptions.Builder .isDefault(false) .isSystem(false) .zoneId(zoneId) .trafficType(TrafficType.GUEST) ); // Warning: the vlan id is not set in the response - using an workaround URI broadcastUri = URI.create("vlan://" + vlanId); for (Network net : networks) { if (broadcastUri.equals(net.getBroadcastURI())) { String jobId = domainAdminClient.getNetworkApi().deleteNetwork(net.getId()); adminJobComplete.apply(jobId); } } }
zoneId(zone.getId()).isSystem(false).trafficType(TrafficType.GUEST)), new Predicate<Network>() { @Override
zoneId(zone.getId()).isSystem(false).trafficType(TrafficType.GUEST)), new Predicate<Network>() { @Override