Example #1
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.format = kwargs.get("format", True)
     self.pesize = kwargs.get("pesize", 32768)
     self.preexist = kwargs.get("preexist", False)
     self.vgname = kwargs.get("vgname", "")
     self.physvols = kwargs.get("physvols", [])
Example #2
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.ipaddr = kwargs.get("ipaddr", "")
     self.port = kwargs.get("port", "3260")
     self.target = kwargs.get("target", "")
     self.user = kwargs.get("user", None)
     self.password = kwargs.get("password", None)
Example #3
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.action = kwargs.get("action", None)
     self.namespace = kwargs.get("namespace", "")
     self.mode = kwargs.get("mode", None)
     self.sectorsize = kwargs.get("sectorsize", None)
     self.blockdevs = kwargs.get("blockdevs", [])
Example #4
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.devnum = kwargs.get("devnum", "")
     self.wwpn = kwargs.get("wwpn", "")
     self.fcplun = kwargs.get("fcplun", "")
     self.scsiid = kwargs.get("scsiid", "")
     self.scsilun = kwargs.get("scsilun", "")
Example #5
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.mount_point = kwargs.get("mount_point", "")
     self.device = kwargs.get("device", "")
     self.format = kwargs.get("format", "")
     self.reformat = kwargs.get("reformat", False)
     self.mkfs_opts = kwargs.get("mkfs_opts", "")
     self.mount_opts = kwargs.get("mount_opts", "")
Example #6
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.minlen = kwargs.get("minlen", 8)
     self.minquality = kwargs.get("minquality", 50)
     self.strict = kwargs.get("strict", True)
     self.changesok = kwargs.get("changesok", False)
     self.emptyok = kwargs.get("emptyok", True)
Example #7
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.groups = kwargs.get("groups", [])
     self.homedir = kwargs.get("homedir", "")
     self.isCrypted = kwargs.get("isCrypted", False)
     self.name = kwargs.get("name", "")
     self.password = kwargs.get("password", "")
     self.shell = kwargs.get("shell", "")
     self.uid = kwargs.get("uid", None)
Example #8
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.device = kwargs.get("device", None)
     self.fstype = kwargs.get("fstype", "")
     self.level = kwargs.get("level", "")
     self.format = kwargs.get("format", True)
     self.spares = kwargs.get("spares", 0)
     self.preexist = kwargs.get("preexist", False)
     self.mountpoint = kwargs.get("mountpoint", "")
     self.members = kwargs.get("members", [])
Example #9
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.fstype = kwargs.get("fstype", "")
     self.grow = kwargs.get("grow", False)
     self.maxSizeMB = kwargs.get("maxSizeMB", 0)
     self.name = kwargs.get("name", "")
     self.format = kwargs.get("format", True)
     self.percent = kwargs.get("percent", 0)
     self.recommended = kwargs.get("recommended", False)
     self.size = kwargs.get("size", None)
     self.preexist = kwargs.get("preexist", False)
     self.vgname = kwargs.get("vgname", "")
     self.mountpoint = kwargs.get("mountpoint", "")
Example #10
0
    def __init__(self, *args, **kwargs):
        BaseData.__init__(self, *args, **kwargs)
        self.format = kwargs.get("format", True)
        self.preexist = kwargs.get("preexist", False)
        self.label = kwargs.get("label", "")
        self.mountpoint = kwargs.get("mountpoint", "")
        self.devices = kwargs.get("devices", [])
        self.dataLevel = kwargs.get("data", None)
        self.metaDataLevel = kwargs.get("metadata", None)

        # subvolume-specific
        self.subvol = kwargs.get("subvol", False)
        self.name = kwargs.get("name", None)        # required
Example #11
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.bootProto = kwargs.get("bootProto", BOOTPROTO_DHCP)
     self.dhcpclass = kwargs.get("dhcpclass", "")
     self.device = kwargs.get("device", "")
     self.essid = kwargs.get("essid", "")
     self.ethtool = kwargs.get("ethtool", "")
     self.gateway = kwargs.get("gateway", "")
     self.hostname = kwargs.get("hostname", "")
     self.ip = kwargs.get("ip", "")
     self.mtu = kwargs.get("mtu", "")
     self.nameserver = kwargs.get("nameserver", "")
     self.netmask = kwargs.get("netmask", "")
     self.nodns = kwargs.get("nodns", False)
     self.onboot = kwargs.get("onboot", True)
     self.wepkey = kwargs.get("wepkey", "")
Example #12
0
    def __str__(self):
        retval = BaseData.__str__(self)

        for path in self.paths:
            retval += "multipath --name=%s%s\n" % (self.name, path.__str__())

        return retval
Example #13
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.active = kwargs.get("active", False)
     self.primOnly = kwargs.get("primOnly", False)
     self.end = kwargs.get("end", 0)
     self.fstype = kwargs.get("fstype", "")
     self.grow = kwargs.get("grow", False)
     self.maxSizeMB = kwargs.get("maxSizeMB", 0)
     self.format = kwargs.get("format", True)
     self.onbiosdisk = kwargs.get("onbiosdisk", "")
     self.disk = kwargs.get("disk", "")
     self.onPart = kwargs.get("onPart", "")
     self.recommended = kwargs.get("recommended", False)
     self.size = kwargs.get("size", None)
     self.start = kwargs.get("start", 0)
     self.mountpoint = kwargs.get("mountpoint", "")
Example #14
0
    def __str__(self):
        retval = BaseData.__str__(self)

        retval += "sshkey"
        retval += self._getArgsAsStr() + '\n'

        return retval
Example #15
0
    def __str__(self):
        retval = BaseData.__str__(self)
        retval += "dmraid --name=%s" % self.name

        for dev in self.devices:
            retval += " --dev=\"%s\"" % dev

        return retval + "\n"
Example #16
0
    def __str__(self):
        retval = BaseData.__str__(self)

        if self.uid != "":
            retval += "user"
            retval += self._getArgsAsStr() + "\n"

        return retval
Example #17
0
    def __str__(self):
        retval = BaseData.__str__(self)

        args = self._getArgsAsStr()
        if args:
            retval += "user%s\n" % args

        return retval
Example #18
0
    def __str__(self):
        retval = BaseData.__str__(self)

        if self.name != "":
            retval += "pwpolicy"
            retval += self._getArgsAsStr() + "\n"

        return retval
Example #19
0
    def __str__(self):
        retval = BaseData.__str__(self)

        args = self._getArgsAsStr()
        args += " --name=%s" % self.name
        args += " --vgname=%s" % self.vgname

        retval += "logvol %s%s\n" % (self.mountpoint, args)
        return retval
Example #20
0
    def __str__(self):
        retval = BaseData.__str__(self)
        retval += "group"

        if self.name:
            retval += " --name=%s" % self.name
        if self.gid:
            retval += " --gid=%s" % self.gid

        return retval + "\n"
Example #21
0
    def __str__(self):
        retval = BaseData.__str__(self)

        if self.moduleName != "":
            retval += "device %s" % self.moduleName

            if self.moduleOpts != "":
                retval += " --opts=\"%s\"" % self.moduleOpts

        return retval + "\n"
Example #22
0
    def __str__(self):
        retval = BaseData.__str__(self)
        retval += "raid %s%s" % (self.mountpoint, self._getArgsAsStr())

        # Do not output the members list if --preexist was passed in.
        # This would be invalid input according to the parse method.
        if not self.preexist:
            retval += " " + " ".join(self.members)

        return retval.strip() + "\n"
Example #23
0
    def __str__(self):
        retval = BaseData.__str__(self)
        retval += "volgroup %s" % self.vgname
        retval += self._getArgsAsStr()

        # Do not output the physical volumes list if --preexist was passed in.
        # This would be invalid input according to the parse method.
        if not self.preexist:
            retval += " " + " ".join(self.physvols)

        return retval.strip() + "\n"
Example #24
0
    def __str__(self):
        retval = BaseData.__str__(self)
        retval += "zfcp"

        if self.devnum != "":
            retval += " --devnum=%s" % self.devnum
        if self.wwpn != "":
            retval += " --wwpn=%s" % self.wwpn
        if self.fcplun != "":
            retval += " --fcplun=%s" % self.fcplun
        if hasattr(self, "scsiid") and self.scsiid != "":
            retval += " --scsiid=%s" % self.scsiid
        if hasattr(self, "scsilun") and self.scsilun != "":
            retval += " --scsilun=%s" % self.scsilun

        return retval + "\n"
Example #25
0
    def __init__(self, *args, **kwargs):
        BaseData.__init__(self, *args, **kwargs)

        self.partition = kwargs.get("partition", "")
        self.source = kwargs.get("source", "")
        self.type = kwargs.get("type", "")
Example #26
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.mpdev = kwargs.get("mpdev", "")
     self.device = kwargs.get("device", "")
     self.rule = kwargs.get("rule", "")
     self.name = ""
Example #27
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.origin = kwargs.get("origin", "")
     self.when = kwargs.get("when", None)
Example #28
0
 def __str__(self):
     retval = BaseData.__str__(self)
     retval += ("snapshot %s --name=%s %s" % (self.origin, self.name, self._getArgsAsStr()))
     return retval.strip() + "\n"
Example #29
0
    def __init__(self, writePriority=0, *args, **kwargs):
        BaseData.__init__(self, writePriority, *args, **kwargs)

        self.partition = kwargs.get("partition", "")
        self.source = kwargs.get("source", "")
        self.type = kwargs.get("type", "")
Example #30
0
 def __str__(self):
     retval = BaseData.__str__(self)
     retval += "driverdisk %s\n" % self._getArgsAsStr()
     return retval
Example #31
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.paths = kwargs.get("paths", [])
Example #32
0
 def __str__(self):
     retval = BaseData.__str__(self)
     retval += "driverdisk %s\n" % self._getArgsAsStr()
     return retval
Example #33
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.mpdev = kwargs.get("mpdev", "")
     self.device = kwargs.get("device", "")
     self.rule = kwargs.get("rule", "")
     self.name = ""
Example #34
0
    def __init__(self, *args, **kwargs):
        BaseData.__init__(self, *args, **kwargs)

        self.name = kwargs.get("name", "")
        self.devices = kwargs.get("devices", [])
        self.dmset = kwargs.get("dmset", None)
Example #35
0
 def __str__(self):
     retval = BaseData.__str__(self)
     retval += "logvol %s %s --name=%s --vgname=%s\n" % (
         self.mountpoint, self._getArgsAsStr(), self.name, self.vgname)
     return retval
Example #36
0
 def __str__(self):
     retval = BaseData.__str__(self)
     retval += "mount %s\n" % self._getArgsAsStr()
     return retval
Example #37
0
 def __init__(self, *args, **kwargs):
     BaseData.__init__(self, *args, **kwargs)
     self.name = kwargs.get("name", "")
     self.paths = kwargs.get("paths", [])