Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
ae5cf3d3
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ae5cf3d3
编写于
1月 13, 2017
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clebergnu-docs_api_parm_param'
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
baaa2e38
9fcb36b7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
20 deletion
+20
-20
avocado/utils/multipath.py
avocado/utils/multipath.py
+3
-3
avocado/utils/pci.py
avocado/utils/pci.py
+17
-17
未找到文件。
avocado/utils/multipath.py
浏览文件 @
ae5cf3d3
...
@@ -38,8 +38,8 @@ def form_conf_mpath_file(blacklist="", defaults_extra=""):
...
@@ -38,8 +38,8 @@ def form_conf_mpath_file(blacklist="", defaults_extra=""):
"""
"""
Form a multipath configuration file, and restart multipath service.
Form a multipath configuration file, and restart multipath service.
:parm blacklist: Entry in conf file to indicate blacklist section.
:par
a
m blacklist: Entry in conf file to indicate blacklist section.
:parm defaults_extra: Extra entry in conf file in defaults section.
:par
a
m defaults_extra: Extra entry in conf file in defaults section.
"""
"""
conf_file
=
"/etc/multipath.conf"
conf_file
=
"/etc/multipath.conf"
with
open
(
conf_file
,
"w"
)
as
mpath_fp
:
with
open
(
conf_file
,
"w"
)
as
mpath_fp
:
...
@@ -76,7 +76,7 @@ def get_mpath_name(wwid):
...
@@ -76,7 +76,7 @@ def get_mpath_name(wwid):
"""
"""
Get multipath name for a given wwid.
Get multipath name for a given wwid.
:parm wwid: wwid of multipath device.
:par
a
m wwid: wwid of multipath device.
:return: Name of multipath device.
:return: Name of multipath device.
"""
"""
...
...
avocado/utils/pci.py
浏览文件 @
ae5cf3d3
...
@@ -64,8 +64,8 @@ def get_num_interfaces_in_pci(dom_pci_address):
...
@@ -64,8 +64,8 @@ def get_num_interfaces_in_pci(dom_pci_address):
Gets number of interfaces of a given partial pci_address starting with
Gets number of interfaces of a given partial pci_address starting with
full domain addr.
full domain addr.
:parm dom_pci_address: Partial pci address including domain addr (0000,
:par
a
m dom_pci_address: Partial pci address including domain addr (0000,
0000:00:1f, 0000:00:1f.2, ...)
0000:00:1f, 0000:00:1f.2, ...)
:return: number of devices in a pci domain.
:return: number of devices in a pci domain.
"""
"""
...
@@ -84,7 +84,7 @@ def get_disks_in_pci_address(pci_address):
...
@@ -84,7 +84,7 @@ def get_disks_in_pci_address(pci_address):
"""
"""
Gets disks in a pci_address.
Gets disks in a pci_address.
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: list of disks in a pci address.
:return: list of disks in a pci address.
"""
"""
...
@@ -101,7 +101,7 @@ def get_nics_in_pci_address(pci_address):
...
@@ -101,7 +101,7 @@ def get_nics_in_pci_address(pci_address):
"""
"""
Gets network interface(nic) in a pci address.
Gets network interface(nic) in a pci address.
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: list of network interfaces in a pci address.
:return: list of network interfaces in a pci address.
"""
"""
...
@@ -118,7 +118,7 @@ def get_pci_fun_list(pci_address):
...
@@ -118,7 +118,7 @@ def get_pci_fun_list(pci_address):
Gets list of functions in the given pci address.
Gets list of functions in the given pci address.
Example: in address 0000:03:00, functions are 0000:03:00.0 and 0000:03:00.1
Example: in address 0000:03:00, functions are 0000:03:00.0 and 0000:03:00.1
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: list of functions in a pci address.
:return: list of functions in a pci address.
"""
"""
...
@@ -131,7 +131,7 @@ def get_slot_from_sysfs(full_pci_address):
...
@@ -131,7 +131,7 @@ def get_slot_from_sysfs(full_pci_address):
:note: Specific for ppc64 processor.
:note: Specific for ppc64 processor.
:parm full_pci_address: Full pci address including domain (0000:03:00.0)
:par
a
m full_pci_address: Full pci address including domain (0000:03:00.0)
:return: slot of pci address from sysfs.
:return: slot of pci address from sysfs.
"""
"""
...
@@ -160,7 +160,7 @@ def get_pci_id_from_sysfs(full_pci_address):
...
@@ -160,7 +160,7 @@ def get_pci_id_from_sysfs(full_pci_address):
"""
"""
Gets the pci id from sysfs of given pci address.
Gets the pci id from sysfs of given pci address.
:parm full_pci_address: Full pci address including domain (0000:03:00.0)
:par
a
m full_pci_address: Full pci address including domain (0000:03:00.0)
:return: pci id of a pci address from sysfs.
:return: pci id of a pci address from sysfs.
"""
"""
...
@@ -176,8 +176,8 @@ def get_pci_prop(pci_address, prop):
...
@@ -176,8 +176,8 @@ def get_pci_prop(pci_address, prop):
"""
"""
Gets specific pci id of given pci address. (first match only)
Gets specific pci id of given pci address. (first match only)
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:parm part: prop of pci id.
:par
a
m part: prop of pci id.
:return: specific pci id of a pci address.
:return: specific pci id of a pci address.
"""
"""
...
@@ -193,7 +193,7 @@ def get_pci_id(pci_address):
...
@@ -193,7 +193,7 @@ def get_pci_id(pci_address):
"""
"""
Gets pci id of given address. (first match only)
Gets pci id of given address. (first match only)
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: pci id of a pci address.
:return: pci id of a pci address.
"""
"""
...
@@ -211,7 +211,7 @@ def get_driver(pci_address):
...
@@ -211,7 +211,7 @@ def get_driver(pci_address):
"""
"""
Gets the kernel driver in use of given pci address. (first match only)
Gets the kernel driver in use of given pci address. (first match only)
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: driver of a pci address.
:return: driver of a pci address.
"""
"""
...
@@ -230,7 +230,7 @@ def get_memory_address(pci_address):
...
@@ -230,7 +230,7 @@ def get_memory_address(pci_address):
:note: There may be multiple memory address for a pci address.
:note: There may be multiple memory address for a pci address.
:note: This function returns only the first such address.
:note: This function returns only the first such address.
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: memory address of a pci_address.
:return: memory address of a pci_address.
"""
"""
...
@@ -249,7 +249,7 @@ def get_mask(pci_address):
...
@@ -249,7 +249,7 @@ def get_mask(pci_address):
:note: There may be multiple memory entries for a pci address.
:note: There may be multiple memory entries for a pci address.
:note: This mask is calculated only with the first such entry.
:note: This mask is calculated only with the first such entry.
:parm pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:par
a
m pci_address: Any segment of a pci address (1f, 0000:00:1f, ...)
:return: mask of a pci address.
:return: mask of a pci address.
"""
"""
...
@@ -274,8 +274,8 @@ def get_vpd(dom_pci_address):
...
@@ -274,8 +274,8 @@ def get_vpd(dom_pci_address):
:note: Specific for ppc64 processor.
:note: Specific for ppc64 processor.
:parm dom_pci_address: Partial pci address including domain addr and at
:par
a
m dom_pci_address: Partial pci address including domain addr and at
least bus addr (0003:00, 0003:00:1f.2, ...)
least bus addr (0003:00, 0003:00:1f.2, ...)
:return: dictionary of vpd of a pci address.
:return: dictionary of vpd of a pci address.
"""
"""
...
@@ -307,8 +307,8 @@ def get_cfg(dom_pci_address):
...
@@ -307,8 +307,8 @@ def get_cfg(dom_pci_address):
:note: Specific for ppc64 processor.
:note: Specific for ppc64 processor.
:parm dom_pci_address: Partial pci address including domain addr and at
:par
a
m dom_pci_address: Partial pci address including domain addr and at
least bus addr (0003:00, 0003:00:1f.2, ...)
least bus addr (0003:00, 0003:00:1f.2, ...)
:return: dictionary of cfg data of a pci address.
:return: dictionary of cfg data of a pci address.
"""
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录