~registry/pykickstart/trunk

« back to all changes in this revision

Viewing changes to pykickstart/handlers/fc4.py

  • Committer: Chris Lumens
  • Date: 2014-10-22 14:19:44 UTC
  • Revision ID: git-v1:982498c0647c4bc3b4460209d4a76698c0eb6f8c
Add a note that the repo has moved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Chris Lumens <clumens@redhat.com>
3
 
#
4
 
# Copyright 2007 Red Hat, Inc.
5
 
#
6
 
# This copyrighted material is made available to anyone wishing to use, modify,
7
 
# copy, or redistribute it subject to the terms and conditions of the GNU
8
 
# General Public License v.2.  This program is distributed in the hope that it
9
 
# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
10
 
# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
 
# See the GNU General Public License for more details.
12
 
#
13
 
# You should have received a copy of the GNU General Public License along with
14
 
# this program; if not, write to the Free Software Foundation, Inc., 51
15
 
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  Any Red Hat
16
 
# trademarks that are incorporated in the source code or documentation are not
17
 
# subject to the GNU General Public License and may only be used or replicated
18
 
# with the express permission of Red Hat, Inc. 
19
 
#
20
 
__all__ = ["FC4Handler"]
21
 
 
22
 
from pykickstart import commands
23
 
from pykickstart.base import BaseHandler
24
 
from pykickstart.version import FC4
25
 
 
26
 
class FC4Handler(BaseHandler):
27
 
    version = FC4
28
 
 
29
 
    commandMap = {
30
 
        "auth": commands.authconfig.FC3_Authconfig,
31
 
        "authconfig": commands.authconfig.FC3_Authconfig,
32
 
        "autopart": commands.autopart.FC3_AutoPart,
33
 
        "autostep": commands.autostep.FC3_AutoStep,
34
 
        "bootloader": commands.bootloader.FC4_Bootloader,
35
 
        "cdrom": commands.cdrom.FC3_Cdrom,
36
 
        "clearpart": commands.clearpart.FC3_ClearPart,
37
 
        "cmdline": commands.displaymode.FC3_DisplayMode,
38
 
        "device": commands.device.FC3_Device,
39
 
        "deviceprobe": commands.deviceprobe.FC3_DeviceProbe,
40
 
        "driverdisk": commands.driverdisk.FC4_DriverDisk,
41
 
        "firewall": commands.firewall.FC3_Firewall,
42
 
        "firstboot": commands.firstboot.FC3_Firstboot,
43
 
        "graphical": commands.displaymode.FC3_DisplayMode,
44
 
        "halt": commands.reboot.FC3_Reboot,
45
 
        "harddrive": commands.harddrive.FC3_HardDrive,
46
 
        "ignoredisk": commands.ignoredisk.FC3_IgnoreDisk,
47
 
        "install": commands.upgrade.FC3_Upgrade,
48
 
        "interactive": commands.interactive.FC3_Interactive,
49
 
        "keyboard": commands.keyboard.FC3_Keyboard,
50
 
        "lang": commands.lang.FC3_Lang,
51
 
        "langsupport": commands.langsupport.FC3_LangSupport,
52
 
        "logvol": commands.logvol.FC4_LogVol,
53
 
        "mediacheck": commands.mediacheck.FC4_MediaCheck,
54
 
        "method": commands.method.FC3_Method,
55
 
        "monitor": commands.monitor.FC3_Monitor,
56
 
        "mouse": commands.mouse.FC3_Mouse,
57
 
        "network": commands.network.FC4_Network,
58
 
        "nfs": commands.nfs.FC3_NFS,
59
 
        "part": commands.partition.FC4_Partition,
60
 
        "partition": commands.partition.FC4_Partition,
61
 
        "poweroff": commands.reboot.FC3_Reboot,
62
 
        "raid": commands.raid.FC4_Raid,
63
 
        "reboot": commands.reboot.FC3_Reboot,
64
 
        "rootpw": commands.rootpw.FC3_RootPw,
65
 
        "selinux": commands.selinux.FC3_SELinux,
66
 
        "shutdown": commands.reboot.FC3_Reboot,
67
 
        "skipx": commands.skipx.FC3_SkipX,
68
 
        "text": commands.displaymode.FC3_DisplayMode,
69
 
        "timezone": commands.timezone.FC3_Timezone,
70
 
        "upgrade": commands.upgrade.FC3_Upgrade,
71
 
        "url": commands.url.FC3_Url,
72
 
        "vnc": commands.vnc.FC3_Vnc,
73
 
        "volgroup": commands.volgroup.FC3_VolGroup,
74
 
        "xconfig": commands.xconfig.FC3_XConfig,
75
 
        "zerombr": commands.zerombr.FC3_ZeroMbr,
76
 
        "zfcp": commands.zfcp.FC3_ZFCP,
77
 
    }
78
 
 
79
 
    dataMap = {
80
 
        "DriverDiskData": commands.driverdisk.FC4_DriverDiskData,
81
 
        "LogVolData": commands.logvol.FC4_LogVolData,
82
 
        "NetworkData": commands.network.FC4_NetworkData,
83
 
        "PartData": commands.partition.FC4_PartData,
84
 
        "RaidData": commands.raid.FC4_RaidData,
85
 
        "VolGroupData": commands.volgroup.FC3_VolGroupData,
86
 
        "ZFCPData": commands.zfcp.FC3_ZFCPData,
87
 
    }