本文整理汇总了Python中pykickstart.base.BaseData类的典型用法代码示例。如果您正苦于以下问题:Python BaseData类的具体用法?Python BaseData怎么用?Python BaseData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BaseData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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", [])
示例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", [])
示例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", "")
示例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)
示例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)
示例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", "")
示例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)
示例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", [])
示例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
示例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", "")
示例11: __str__
def __str__(self):
retval = BaseData.__str__(self)
retval += "sshkey"
retval += self._getArgsAsStr() + '\n'
return retval
示例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", "")
示例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", "")
示例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
示例15: __str__
def __str__(self):
retval = BaseData.__str__(self)
args = self._getArgsAsStr()
if args:
retval += "user%s\n" % args
return retval