/** * @see CreateNetworkOptions#gateway(String) */ public static CreateNetworkOptions gateway(String gateway) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.gateway(gateway); }
/** * @see CreateNetworkOptions#gateway(String) */ public static CreateNetworkOptions gateway(String gateway) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.gateway(gateway); }
/** * @see CreateNetworkOptions#gateway(String) */ public static CreateNetworkOptions gateway(String gateway) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.gateway(gateway); }
public void testGateway() { CreateNetworkOptions options = new CreateNetworkOptions().gateway("1.1.1.1"); assertEquals(ImmutableList.of("1.1.1.1"), options.buildQueryParameters().get("gateway")); }
public void testGateway() { CreateNetworkOptions options = new CreateNetworkOptions().gateway("1.1.1.1"); assertEquals(ImmutableList.of("1.1.1.1"), options.buildQueryParameters().get("gateway")); }
subnetCidr = subnetCidr.subnet(10); options.gateway(subnetCidr.addressAtOffset(1).getHostAddress()) .netmask(subnetCidr.netmask().getHostAddress());
vlan("65").startIP("192.168.1.2").netmask("255.255.255.0").gateway("192.168.1.1")); checkNetwork(network); } catch (IllegalStateException e) {
vlan("65").startIP("192.168.1.2").netmask("255.255.255.0").gateway("192.168.1.1")); checkNetwork(network); } catch (IllegalStateException e) {
subnet = subnet.subnet(10); options.gateway(subnet.addressAtOffset(1).getHostAddress()). netmask(subnet.netmask().getHostAddress());
vlan(vlanId).startIP("192.168.1.2").netmask("255.255.255.0").gateway("192.168.1.1"));
vlan(vlanId).startIP("192.168.1.2").netmask("255.255.255.0").gateway("192.168.1.1"));
template.getZoneId(), offering.getId(), prefix + "-ip-network", "", CreateNetworkOptions.Builder.startIP("192.168.0.1").endIP("192.168.0.5") .netmask("255.255.255.0").gateway("192.168.0.1").vlan("21")); logger.info("Created network: " + network);
template.getZoneId(), offering.getId(), prefix + "-ip-network", "", CreateNetworkOptions.Builder.startIP("192.168.0.1").endIP("192.168.0.5") .netmask("255.255.255.0").gateway("192.168.0.1").vlan("21")); logger.info("Created network: " + network);