Examples of NetworkType


Examples of com.cloud.dc.DataCenter.NetworkType

        String paramPublicVswitchName = null;

        VmwareTrafficLabel guestTrafficLabelObj = new VmwareTrafficLabel(TrafficType.Guest);
        VmwareTrafficLabel publicTrafficLabelObj = new VmwareTrafficLabel(TrafficType.Public);
        DataCenterVO zone = _dcDao.findById(dcId);
        NetworkType zoneType = zone.getNetworkType();
        _readGlobalConfigParameters();

        // Set default physical network end points for public and guest traffic
        // Private traffic will be only on standard vSwitch for now.
        if (useDVS) {
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

            throw new InvalidParameterValueException("Invalid zone type; only Advanced and Basic values are supported");
        } else if (type.equalsIgnoreCase(NetworkType.Basic.toString())) {
            isBasic = true;
        }

        NetworkType zoneType = isBasic ? NetworkType.Basic : NetworkType.Advanced;

        // error out when the parameter specified for Basic zone
        if (zoneType == NetworkType.Basic && guestCidr != null) {
            throw new InvalidParameterValueException("guestCidrAddress parameter is not supported for Basic zone");
        }
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

            s_logger.info("Detected private network label : " + privateTrafficLabel);
        }
       
        if (_vmwareMgr.getNexusVSwitchGlobalParameter()) {
            DataCenterVO zone = _dcDao.findById(dcId);
            NetworkType zoneType = zone.getNetworkType();
            if (zoneType != NetworkType.Basic) {
                publicTrafficLabel = _netmgr.getDefaultPublicTrafficLabel(dcId, HypervisorType.VMware);
                if (publicTrafficLabel != null) {
                    s_logger.info("Detected public network label : " + publicTrafficLabel);
                }
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

            throw new InvalidParameterValueException("Invalid zone type; only Advanced and Basic values are supported");
        } else if (type.equalsIgnoreCase(NetworkType.Basic.toString())) {
            isBasic = true;
        }

        NetworkType zoneType = isBasic ? NetworkType.Basic : NetworkType.Advanced;

        // error out when the parameter specified for Basic zone
        if (zoneType == NetworkType.Basic && guestCidr != null) {
            throw new InvalidParameterValueException("guestCidrAddress parameter is not supported for Basic zone");
        }
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

        if (Grouping.AllocationState.Enabled == zone.getAllocationState()) {
            // TBD: Send uuid instead of zoneId; may have to hardcode tablename in call to addProxyObject().
            throw new PermissionDeniedException("Cannot create PhysicalNetwork since the Zone is currently enabled, zone Id: " + zoneId);
        }

        NetworkType zoneType = zone.getNetworkType();

        if (zoneType == NetworkType.Basic) {
            if (!_physicalNetworkDao.listByZone(zoneId).isEmpty()) {
                // TBD: Send uuid instead of zoneId; may have to hardcode tablename in call to addProxyObject().
                throw new CloudRuntimeException("Cannot add the physical network to basic zone id: " + zoneId + ", there is a physical network already existing in this basic Zone");
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

            throw new InvalidParameterValueException("Invalid zone type; only Advanced and Basic values are supported");
        } else if (type.equalsIgnoreCase(NetworkType.Basic.toString())) {
            isBasic = true;
        }

        NetworkType zoneType = isBasic ? NetworkType.Basic : NetworkType.Advanced;

        // error out when the parameter specified for Basic zone
        if (zoneType == NetworkType.Basic && guestCidr != null) {
            throw new InvalidParameterValueException("guestCidrAddress parameter is not supported for Basic zone");
        }
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

        if (Grouping.AllocationState.Enabled == zone.getAllocationState()) {
            // TBD: Send uuid instead of zoneId; may have to hardcode tablename in call to addProxyObject().
            throw new PermissionDeniedException("Cannot create PhysicalNetwork since the Zone is currently enabled, zone Id: " + zoneId);
        }

        NetworkType zoneType = zone.getNetworkType();

        if (zoneType == NetworkType.Basic) {
            if (!_physicalNetworkDao.listByZone(zoneId).isEmpty()) {
                // TBD: Send uuid instead of zoneId; may have to hardcode tablename in call to addProxyObject().
                throw new CloudRuntimeException("Cannot add the physical network to basic zone id: " + zoneId + ", there is a physical network already existing in this basic Zone");
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

     */
    private void migrateZones(){
      try {
      System.out.println("Migrating zones");
      String val = _configurationDao.getValue("direct.attach.untagged.vlan.enabled");
      NetworkType networkType;
      if(val == null || val.equalsIgnoreCase("true")){
        networkType = NetworkType.Basic;
      }else{
        networkType = NetworkType.Advanced;
      }
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

          + privateTrafficLabel);
    }

    if (_vmwareMgr.getNexusVSwitchGlobalParameter()) {
      DataCenterVO zone = _dcDao.findById(dcId);
      NetworkType zoneType = zone.getNetworkType();
      if (zoneType != NetworkType.Basic) {
        publicTrafficLabel = _netmgr.getDefaultPublicTrafficLabel(dcId,
            HypervisorType.VMware);
        if (publicTrafficLabel != null) {
          s_logger.info("Detected public network label : "
View Full Code Here

Examples of com.cloud.dc.DataCenter.NetworkType

     */
    private void migrateZones(){
        try {
            System.out.println("Migrating zones");
            String val = _configurationDao.getValue("direct.attach.untagged.vlan.enabled");
            NetworkType networkType;
            if(val == null || val.equalsIgnoreCase("true")){
                networkType = NetworkType.Basic;
            }else{
                networkType = NetworkType.Advanced;
            }
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.