cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [09/11] Revert "CLOUDSTACK-6967: Now with module!"
Date Tue, 24 Jun 2014 08:24:25 GMT
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/be028974/plugins/hypervisors/ovm3/src/com/cloud/hypervisor/ovm3/hypervisor/Ovm3Helper.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm3/src/com/cloud/hypervisor/ovm3/hypervisor/Ovm3Helper.java
b/plugins/hypervisors/ovm3/src/com/cloud/hypervisor/ovm3/hypervisor/Ovm3Helper.java
deleted file mode 100755
index 8b0b1b5..0000000
--- a/plugins/hypervisors/ovm3/src/com/cloud/hypervisor/ovm3/hypervisor/Ovm3Helper.java
+++ /dev/null
@@ -1,82 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-package com.cloud.hypervisor.ovm3.hypervisor;
-
-import java.util.HashMap;
-
-public class Ovm3Helper {
-    /* /usr/lib64/python2.4/site-packages/agent/lib/assembly */
-    private static final HashMap<String, String> s_ovmMap = new HashMap<String,
String>();
-
-    public static final String HVM = "hvm";
-    public static final String PV = "xen_pvm";
-    public static final String DOMSOL = "ldoms_pvm";
-    public static final String DEFAULT = "default";
-
-    static {
-        s_ovmMap.put("Oracle Enterprise Linux 6.0 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 6.0 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.0 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.0 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.1 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.1 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.2 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.2 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.3 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.3 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.4 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.4 (64-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.5 (32-bit)", PV);
-        s_ovmMap.put("Oracle Enterprise Linux 5.5 (64-bit)", PV);
-        s_ovmMap.put("Other Linux (32-bit)", PV);
-        s_ovmMap.put("Other Linux (64-bit)", PV);
-        s_ovmMap.put("Other PV (32-bit)", PV);
-        s_ovmMap.put("Other PV (64-bit)", PV);
-        s_ovmMap.put("Debian GNU/Linux 7(32-bit)", PV);
-        s_ovmMap.put("Debian GNU/Linux 7(64-bit)", PV);
-        s_ovmMap.put("Linux HVM (32-bit)", HVM);
-        s_ovmMap.put("Linux HVM (64-bit)", HVM);
-        s_ovmMap.put("Dos", HVM);
-        s_ovmMap.put("Windows 7 (32-bit)", HVM);
-        s_ovmMap.put("Windows 7 (64-bit)", HVM);
-        s_ovmMap.put("Windows 8 (64-bit)", HVM);
-        s_ovmMap.put("Windows Server 2003 (32-bit)", HVM);
-        s_ovmMap.put("Windows Server 2003 (64-bit)", HVM);
-        s_ovmMap.put("Windows Server 2008 (32-bit)", HVM);
-        s_ovmMap.put("Windows Server 2008 (64-bit)", HVM);
-        s_ovmMap.put("Windows Server 2008 R2 (64-bit)", HVM);
-        s_ovmMap.put("Windows Server 2012 (64-bit)", HVM);
-        s_ovmMap.put("Windows 2000 SP4 (32-bit)", HVM);
-        s_ovmMap.put("Windows Vista (32-bit)", HVM);
-        s_ovmMap.put("Windows XP SP2 (32-bit)", HVM);
-        s_ovmMap.put("Windows XP SP3 (32-bit)", HVM);
-        s_ovmMap.put("Sun Solaris 10(32-bit)", HVM);
-        s_ovmMap.put("Sun Solaris 10(64-bit)", HVM);
-        s_ovmMap.put("Sun Solaris 9(Experimental)", HVM);
-        s_ovmMap.put("Sun Solaris 8(Experimental)", HVM);
-        s_ovmMap.put("Sun Solaris 11 (32-bit)", HVM);
-        s_ovmMap.put("Sun Solaris 11 (64-bit)", HVM);
-        s_ovmMap.put("Sun Solaris PV (32-bit)", PV);
-        s_ovmMap.put("Sun Solaris PV (64-bit)", PV);
-        s_ovmMap.put("Sun Solaris Sparc (32-bit)", DOMSOL);
-        s_ovmMap.put("Sun Solaris Sparc (64-bit)", DOMSOL);
-    }
-
-    public static String getOvm3GuestType(String stdType) {
-        return s_ovmMap.get(stdType);
-    }
-}


Mime
View raw message