Examples of IpAddresses


Examples of com.cloud.network.Network.IpAddresses

                    throw new InvalidParameterValueException("Zone is not configured to use local storage but disk offering " + diskOffering.getName() + " uses it");
                }
            }

            UserVm vm = null;
            IpAddresses addrs = new IpAddresses(ipAddress, getIp6Address());
            if (zone.getNetworkType() == NetworkType.Basic) {
                if (getNetworkIds() != null) {
                    throw new InvalidParameterValueException("Can't specify network Ids in Basic zone");
                } else {
                    vm = _userVmService.createBasicSecurityGroupVirtualMachine(zone, serviceOffering, template, getSecurityGroupIdList(), owner, name, displayName, diskOfferingId,
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                String requestedIp = (String) ips.get("ip");
                String requestedIpv6 = (String) ips.get("ipv6");
                if (requestedIpv6 != null) {
                  requestedIpv6 = requestedIpv6.toLowerCase();
                }
                IpAddresses addrs = new IpAddresses(requestedIp, requestedIpv6);
                ipToNetworkMap.put(networkId, addrs);
            }
        }

        return ipToNetworkMap;
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                    throw new InvalidParameterValueException("Zone is not configured to use local storage but disk offering " + diskOffering.getName() + " uses it");
                }
            }

            UserVm vm = null;
          IpAddresses addrs = new IpAddresses(ipAddress, getIp6Address());
            if (zone.getNetworkType() == NetworkType.Basic) {
                if (getNetworkIds() != null) {
                    throw new InvalidParameterValueException("Can't specify network Ids in Basic zone");
                } else {
                    vm = _userVmService.createBasicSecurityGroupVirtualMachine(zone, serviceOffering, template, getSecurityGroupIdList(), owner, name,
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                String requestedIp = ips.get("ip");
                String requestedIpv6 = ips.get("ipv6");
                if (requestedIpv6 != null) {
                  requestedIpv6 = requestedIpv6.toLowerCase();
                }
                IpAddresses addrs = new IpAddresses(requestedIp, requestedIpv6);
                ipToNetworkMap.put(networkId, addrs);
            }
        }

        return ipToNetworkMap;
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                    throw new InvalidParameterValueException("Zone is not configured to use local storage but disk offering " + diskOffering.getName() + " uses it");
                }
            }

            UserVm vm = null;
          IpAddresses addrs = new IpAddresses(ipAddress, getIp6Address());
            if (zone.getNetworkType() == NetworkType.Basic) {
                if (getNetworkIds() != null) {
                    throw new InvalidParameterValueException("Can't specify network Ids in Basic zone");
                } else {
                    vm =
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                        && !(network.getAclType() == ACLType.Account && network.getAccountId() == accountId)) {
                    throw new InvalidParameterValueException("only shared network or isolated network with the same account_id can be added to vm");
                }
            }

            IpAddresses requestedIpPair = null;
            if (requestedIps != null && !requestedIps.isEmpty()) {
                requestedIpPair = requestedIps.get(network.getId());
            }

            if (requestedIpPair == null) {
                requestedIpPair = new IpAddresses(null, null);
            } else {
                _networkModel.checkRequestedIpAddresses(network.getId(), requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());
            }

            NicProfile profile = new NicProfile(requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());

            if (defaultNetworkNumber == 0) {
                defaultNetworkNumber++;
                // if user requested specific ip for default network, add it
                if (defaultIps.getIp4Address() != null || defaultIps.getIp6Address() != null) {
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                throw new InvalidParameterValueException("Network id="
                        + network.getId() + " doesn't belong to zone "
                        + zone.getId());
            }

            IpAddresses requestedIpPair = null;
            if (requestedIps != null && !requestedIps.isEmpty()) {
                requestedIpPair = requestedIps.get(network.getId());
            }
           
            if (requestedIpPair == null) {
              requestedIpPair = new IpAddresses(null, null);
            } else {
              _networkModel.checkRequestedIpAddresses(network.getId(), requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());
            }
           
            NicProfile profile = new NicProfile(requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());

            if (defaultNetworkNumber == 0) {
                defaultNetworkNumber++;
                // if user requested specific ip for default network, add it
                if (defaultIps.getIp4Address() != null || defaultIps.getIp6Address() != null) {
View Full Code Here

Examples of com.cloud.network.Network.IpAddresses

                throw new InvalidParameterValueException("Network id="
                        + network.getId() + " doesn't belong to zone "
                        + zone.getId());
            }

            IpAddresses requestedIpPair = null;
            if (requestedIps != null && !requestedIps.isEmpty()) {
                requestedIpPair = requestedIps.get(network.getId());
            }
           
            if (requestedIpPair == null) {
              requestedIpPair = new IpAddresses(null, null);
            } else {
              _networkModel.checkRequestedIpAddresses(network.getId(), requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());
            }
           
            NicProfile profile = new NicProfile(requestedIpPair.getIp4Address(), requestedIpPair.getIp6Address());

            if (defaultNetworkNumber == 0) {
                defaultNetworkNumber++;
                // if user requested specific ip for default network, add it
                if (defaultIps.getIp4Address() != null || defaultIps.getIp6Address() != null) {
View Full Code Here

Examples of com.google.gsa.proxy.auth.ipaddress.IPAddresses

                         e);
        }
        //Check if the sender is in between the IP Addresses
        String remoteAddress = httpRequest.getRemoteAddr();
        logger.debug("The remote address is: " + remoteAddress);
        IPAddresses sourceIPAddress = new IPAddresses(remoteAddress);

        if (!ipAddressChecker.isIPAddressIncluded(sourceIPAddress)) {
            logger.warn("The remote IP Address is not included in the permitted list");
            return HttpServletResponse.SC_UNAUTHORIZED;
        }
View Full Code Here

Examples of com.google.gsa.proxy.auth.ipaddress.IPAddresses

                                 ipAddressArray.length);
                    for (int i = 0; i < ipAddressArray.length; i++) {
                        logger.debug("Adding new IP Address [" +
                                     ipAddressArray[i] + "]");

                        IPAddresses ipAddresses =
                            new IPAddresses(cleanIPAddress(ipAddressArray[i]));
                        ipAddressChecker.addAddress(ipAddresses);
                    }
                }
            } catch (Exception ex) {
                logger.error("Error when reading IP Addresses: " +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.