本文整理汇总了Python中pykickstart.base.BaseData类的典型用法代码示例。如果您正苦于以下问题:Python BaseData类的具体用法?Python BaseData怎么用?Python BaseData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BaseData类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
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", [])
开发者ID:atodorov,项目名称:pykickstart,代码行数:7,代码来源:nvdimm.py
示例2: __init__
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", [])
开发者ID:piyush1911,项目名称:pykickstart,代码行数:7,代码来源:volgroup.py
示例3: __init__
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", "")
开发者ID:autotune,项目名称:pykickstart,代码行数:7,代码来源:zfcp.py
示例4: __init__
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)
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:7,代码来源:iscsi.py
示例5: __init__
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)
开发者ID:Jakuje,项目名称:anaconda,代码行数:8,代码来源:pwpolicy.py
示例6: __init__
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", "")
开发者ID:atodorov,项目名称:pykickstart,代码行数:8,代码来源:mount.py
示例7: __init__
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)
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:user.py
示例8: __init__
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", [])
开发者ID:autotune,项目名称:pykickstart,代码行数:10,代码来源:raid.py
示例9: __init__
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
开发者ID:nandakishore1006,项目名称:pykickstart,代码行数:13,代码来源:btrfs.py
示例10: __init__
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", "")
开发者ID:jasontibbitts,项目名称:pykickstart,代码行数:13,代码来源:logvol.py
示例11: __str__
def __str__(self):
retval = BaseData.__str__(self)
retval += "sshkey"
retval += self._getArgsAsStr() + '\n'
return retval
开发者ID:rhinstaller,项目名称:pykickstart,代码行数:7,代码来源:sshkey.py
示例12: __init__
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", "")
开发者ID:atodorov,项目名称:pykickstart,代码行数:16,代码来源:network.py
示例13: __init__
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", "")
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:16,代码来源:partition.py
示例14: __str__
def __str__(self):
retval = BaseData.__str__(self)
for path in self.paths:
retval += "multipath --name=%s%s\n" % (self.name, path.__str__())
return retval
开发者ID:M4rtinK,项目名称:pykickstart,代码行数:7,代码来源:multipath.py
示例15: __str__
def __str__(self):
retval = BaseData.__str__(self)
args = self._getArgsAsStr()
if args:
retval += "user%s\n" % args
return retval
开发者ID:dustymabe,项目名称:pykickstart,代码行数:8,代码来源:user.py
示例16: __str__
def __str__(self):
retval = BaseData.__str__(self)
if self.name != "":
retval += "pwpolicy"
retval += self._getArgsAsStr() + "\n"
return retval
开发者ID:Jakuje,项目名称:anaconda,代码行数:8,代码来源:pwpolicy.py
示例17: __str__
def __str__(self):
retval = BaseData.__str__(self)
if self.uid != "":
retval += "user"
retval += self._getArgsAsStr() + "\n"
return retval
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:8,代码来源:user.py
示例18: __str__
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"
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:8,代码来源:dmraid.py
示例19: __str__
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
开发者ID:atodorov,项目名称:pykickstart,代码行数:9,代码来源:logvol.py
示例20: __str__
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"
开发者ID:dustymabe,项目名称:pykickstart,代码行数:10,代码来源:group.py
注:本文中的pykickstart.base.BaseData类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论