Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
bcd660a4
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bcd660a4
编写于
2月 07, 2013
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-interface.c: Switch to c99 initialization of vshCmdInfo
上级
f3ce4ec6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
99 addition
and
43 deletion
+99
-43
tools/virsh-interface.c
tools/virsh-interface.c
+99
-43
未找到文件。
tools/virsh-interface.c
浏览文件 @
bcd660a4
...
...
@@ -83,9 +83,13 @@ vshCommandOptInterfaceBy(vshControl *ctl, const vshCmd *cmd,
* "iface-edit" command
*/
static
const
vshCmdInfo
info_interface_edit
[]
=
{
{
"help"
,
N_
(
"edit XML configuration for a physical host interface"
)},
{
"desc"
,
N_
(
"Edit the XML configuration for a physical host interface."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"edit XML configuration for a physical host interface"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Edit the XML configuration for a physical host interface."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_edit
[]
=
{
...
...
@@ -309,9 +313,13 @@ cleanup:
* "iface-list" command
*/
static
const
vshCmdInfo
info_interface_list
[]
=
{
{
"help"
,
N_
(
"list physical host interfaces"
)},
{
"desc"
,
N_
(
"Returns list of physical host interfaces."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"list physical host interfaces"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns list of physical host interfaces."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_list
[]
=
{
...
...
@@ -367,9 +375,13 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-name" command
*/
static
const
vshCmdInfo
info_interface_name
[]
=
{
{
"help"
,
N_
(
"convert an interface MAC address to interface name"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"convert an interface MAC address to interface name"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_name
[]
=
{
...
...
@@ -399,9 +411,13 @@ cmdInterfaceName(vshControl *ctl, const vshCmd *cmd)
* "iface-mac" command
*/
static
const
vshCmdInfo
info_interface_mac
[]
=
{
{
"help"
,
N_
(
"convert an interface name to interface MAC address"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"convert an interface name to interface MAC address"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_mac
[]
=
{
...
...
@@ -431,9 +447,13 @@ cmdInterfaceMAC(vshControl *ctl, const vshCmd *cmd)
* "iface-dumpxml" command
*/
static
const
vshCmdInfo
info_interface_dumpxml
[]
=
{
{
"help"
,
N_
(
"interface information in XML"
)},
{
"desc"
,
N_
(
"Output the physical host interface information as an XML dump to stdout."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"interface information in XML"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Output the physical host interface information as an XML dump to stdout."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_dumpxml
[]
=
{
...
...
@@ -481,9 +501,13 @@ cmdInterfaceDumpXML(vshControl *ctl, const vshCmd *cmd)
* "iface-define" command
*/
static
const
vshCmdInfo
info_interface_define
[]
=
{
{
"help"
,
N_
(
"define (but don't start) a physical host interface from an XML file"
)},
{
"desc"
,
N_
(
"Define a physical host interface."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"define (but don't start) a physical host interface from an XML file"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Define a physical host interface."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_define
[]
=
{
...
...
@@ -527,9 +551,13 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
* "iface-undefine" command
*/
static
const
vshCmdInfo
info_interface_undefine
[]
=
{
{
"help"
,
N_
(
"undefine a physical host interface (remove it from configuration)"
)},
{
"desc"
,
N_
(
"undefine an interface."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"undefine a physical host interface (remove it from configuration)"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"undefine an interface."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_undefine
[]
=
{
...
...
@@ -566,9 +594,13 @@ cmdInterfaceUndefine(vshControl *ctl, const vshCmd *cmd)
* "iface-start" command
*/
static
const
vshCmdInfo
info_interface_start
[]
=
{
{
"help"
,
N_
(
"start a physical host interface (enable it /
\"
if-up
\"
)"
)},
{
"desc"
,
N_
(
"start a physical host interface."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"start a physical host interface (enable it /
\"
if-up
\"
)"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"start a physical host interface."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_start
[]
=
{
...
...
@@ -605,9 +637,13 @@ cmdInterfaceStart(vshControl *ctl, const vshCmd *cmd)
* "iface-destroy" command
*/
static
const
vshCmdInfo
info_interface_destroy
[]
=
{
{
"help"
,
N_
(
"destroy a physical host interface (disable it /
\"
if-down
\"
)"
)},
{
"desc"
,
N_
(
"forcefully stop a physical host interface."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"destroy a physical host interface (disable it /
\"
if-down
\"
)"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"forcefully stop a physical host interface."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_destroy
[]
=
{
...
...
@@ -644,11 +680,15 @@ cmdInterfaceDestroy(vshControl *ctl, const vshCmd *cmd)
* "iface-begin" command
*/
static
const
vshCmdInfo
info_interface_begin
[]
=
{
{
"help"
,
N_
(
"create a snapshot of current interfaces settings, "
{.
name
=
"help"
,
.
data
=
N_
(
"create a snapshot of current interfaces settings, "
"which can be later committed (iface-commit) or "
"restored (iface-rollback)"
)},
{
"desc"
,
N_
(
"Create a restore point for interfaces settings"
)},
{
NULL
,
NULL
}
"restored (iface-rollback)"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a restore point for interfaces settings"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_begin
[]
=
{
...
...
@@ -671,9 +711,13 @@ cmdInterfaceBegin(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-commit" command
*/
static
const
vshCmdInfo
info_interface_commit
[]
=
{
{
"help"
,
N_
(
"commit changes made since iface-begin and free restore point"
)},
{
"desc"
,
N_
(
"commit changes and free restore point"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"commit changes made since iface-begin and free restore point"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"commit changes and free restore point"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_commit
[]
=
{
...
...
@@ -696,9 +740,13 @@ cmdInterfaceCommit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-rollback" command
*/
static
const
vshCmdInfo
info_interface_rollback
[]
=
{
{
"help"
,
N_
(
"rollback to previous saved configuration created via iface-begin"
)},
{
"desc"
,
N_
(
"rollback to previous restore point"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"rollback to previous saved configuration created via iface-begin"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"rollback to previous restore point"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_rollback
[]
=
{
...
...
@@ -721,9 +769,13 @@ cmdInterfaceRollback(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-bridge" command
*/
static
const
vshCmdInfo
info_interface_bridge
[]
=
{
{
"help"
,
N_
(
"create a bridge device and attach an existing network device to it"
)},
{
"desc"
,
N_
(
"bridge an existing network device"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"create a bridge device and attach an existing network device to it"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"bridge an existing network device"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_bridge
[]
=
{
...
...
@@ -956,9 +1008,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
* "iface-unbridge" command
*/
static
const
vshCmdInfo
info_interface_unbridge
[]
=
{
{
"help"
,
N_
(
"undefine a bridge device after detaching its slave device"
)},
{
"desc"
,
N_
(
"unbridge a network device"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"undefine a bridge device after detaching its slave device"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"unbridge a network device"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_interface_unbridge
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录