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,
...
@@ -83,9 +83,13 @@ vshCommandOptInterfaceBy(vshControl *ctl, const vshCmd *cmd,
* "iface-edit" command
* "iface-edit" command
*/
*/
static
const
vshCmdInfo
info_interface_edit
[]
=
{
static
const
vshCmdInfo
info_interface_edit
[]
=
{
{
"help"
,
N_
(
"edit XML configuration for a physical host interface"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Edit the XML configuration for a physical host interface."
)},
.
data
=
N_
(
"edit XML configuration for a physical host interface"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Edit the XML configuration for a physical host interface."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_edit
[]
=
{
static
const
vshCmdOptDef
opts_interface_edit
[]
=
{
...
@@ -309,9 +313,13 @@ cleanup:
...
@@ -309,9 +313,13 @@ cleanup:
* "iface-list" command
* "iface-list" command
*/
*/
static
const
vshCmdInfo
info_interface_list
[]
=
{
static
const
vshCmdInfo
info_interface_list
[]
=
{
{
"help"
,
N_
(
"list physical host interfaces"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Returns list of physical host interfaces."
)},
.
data
=
N_
(
"list physical host interfaces"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns list of physical host interfaces."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_list
[]
=
{
static
const
vshCmdOptDef
opts_interface_list
[]
=
{
...
@@ -367,9 +375,13 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
...
@@ -367,9 +375,13 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-name" command
* "iface-name" command
*/
*/
static
const
vshCmdInfo
info_interface_name
[]
=
{
static
const
vshCmdInfo
info_interface_name
[]
=
{
{
"help"
,
N_
(
"convert an interface MAC address to interface name"
)},
{.
name
=
"help"
,
{
"desc"
,
""
},
.
data
=
N_
(
"convert an interface MAC address to interface name"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_name
[]
=
{
static
const
vshCmdOptDef
opts_interface_name
[]
=
{
...
@@ -399,9 +411,13 @@ cmdInterfaceName(vshControl *ctl, const vshCmd *cmd)
...
@@ -399,9 +411,13 @@ cmdInterfaceName(vshControl *ctl, const vshCmd *cmd)
* "iface-mac" command
* "iface-mac" command
*/
*/
static
const
vshCmdInfo
info_interface_mac
[]
=
{
static
const
vshCmdInfo
info_interface_mac
[]
=
{
{
"help"
,
N_
(
"convert an interface name to interface MAC address"
)},
{.
name
=
"help"
,
{
"desc"
,
""
},
.
data
=
N_
(
"convert an interface name to interface MAC address"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_mac
[]
=
{
static
const
vshCmdOptDef
opts_interface_mac
[]
=
{
...
@@ -431,9 +447,13 @@ cmdInterfaceMAC(vshControl *ctl, const vshCmd *cmd)
...
@@ -431,9 +447,13 @@ cmdInterfaceMAC(vshControl *ctl, const vshCmd *cmd)
* "iface-dumpxml" command
* "iface-dumpxml" command
*/
*/
static
const
vshCmdInfo
info_interface_dumpxml
[]
=
{
static
const
vshCmdInfo
info_interface_dumpxml
[]
=
{
{
"help"
,
N_
(
"interface information in XML"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Output the physical host interface information as an XML dump to stdout."
)},
.
data
=
N_
(
"interface information in XML"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Output the physical host interface information as an XML dump to stdout."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_dumpxml
[]
=
{
static
const
vshCmdOptDef
opts_interface_dumpxml
[]
=
{
...
@@ -481,9 +501,13 @@ cmdInterfaceDumpXML(vshControl *ctl, const vshCmd *cmd)
...
@@ -481,9 +501,13 @@ cmdInterfaceDumpXML(vshControl *ctl, const vshCmd *cmd)
* "iface-define" command
* "iface-define" command
*/
*/
static
const
vshCmdInfo
info_interface_define
[]
=
{
static
const
vshCmdInfo
info_interface_define
[]
=
{
{
"help"
,
N_
(
"define (but don't start) a physical host interface from an XML file"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"Define a physical host interface."
)},
.
data
=
N_
(
"define (but don't start) a physical host interface from an XML file"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Define a physical host interface."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_define
[]
=
{
static
const
vshCmdOptDef
opts_interface_define
[]
=
{
...
@@ -527,9 +551,13 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
...
@@ -527,9 +551,13 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
* "iface-undefine" command
* "iface-undefine" command
*/
*/
static
const
vshCmdInfo
info_interface_undefine
[]
=
{
static
const
vshCmdInfo
info_interface_undefine
[]
=
{
{
"help"
,
N_
(
"undefine a physical host interface (remove it from configuration)"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"undefine an interface."
)},
.
data
=
N_
(
"undefine a physical host interface (remove it from configuration)"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"undefine an interface."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_undefine
[]
=
{
static
const
vshCmdOptDef
opts_interface_undefine
[]
=
{
...
@@ -566,9 +594,13 @@ cmdInterfaceUndefine(vshControl *ctl, const vshCmd *cmd)
...
@@ -566,9 +594,13 @@ cmdInterfaceUndefine(vshControl *ctl, const vshCmd *cmd)
* "iface-start" command
* "iface-start" command
*/
*/
static
const
vshCmdInfo
info_interface_start
[]
=
{
static
const
vshCmdInfo
info_interface_start
[]
=
{
{
"help"
,
N_
(
"start a physical host interface (enable it /
\"
if-up
\"
)"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"start a physical host interface."
)},
.
data
=
N_
(
"start a physical host interface (enable it /
\"
if-up
\"
)"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"start a physical host interface."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_start
[]
=
{
static
const
vshCmdOptDef
opts_interface_start
[]
=
{
...
@@ -605,9 +637,13 @@ cmdInterfaceStart(vshControl *ctl, const vshCmd *cmd)
...
@@ -605,9 +637,13 @@ cmdInterfaceStart(vshControl *ctl, const vshCmd *cmd)
* "iface-destroy" command
* "iface-destroy" command
*/
*/
static
const
vshCmdInfo
info_interface_destroy
[]
=
{
static
const
vshCmdInfo
info_interface_destroy
[]
=
{
{
"help"
,
N_
(
"destroy a physical host interface (disable it /
\"
if-down
\"
)"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"forcefully stop a physical host interface."
)},
.
data
=
N_
(
"destroy a physical host interface (disable it /
\"
if-down
\"
)"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"forcefully stop a physical host interface."
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_destroy
[]
=
{
static
const
vshCmdOptDef
opts_interface_destroy
[]
=
{
...
@@ -644,11 +680,15 @@ cmdInterfaceDestroy(vshControl *ctl, const vshCmd *cmd)
...
@@ -644,11 +680,15 @@ cmdInterfaceDestroy(vshControl *ctl, const vshCmd *cmd)
* "iface-begin" command
* "iface-begin" command
*/
*/
static
const
vshCmdInfo
info_interface_begin
[]
=
{
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 "
"which can be later committed (iface-commit) or "
"restored (iface-rollback)"
)},
"restored (iface-rollback)"
)
{
"desc"
,
N_
(
"Create a restore point for interfaces settings"
)},
},
{
NULL
,
NULL
}
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a restore point for interfaces settings"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_begin
[]
=
{
static
const
vshCmdOptDef
opts_interface_begin
[]
=
{
...
@@ -671,9 +711,13 @@ cmdInterfaceBegin(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
...
@@ -671,9 +711,13 @@ cmdInterfaceBegin(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-commit" command
* "iface-commit" command
*/
*/
static
const
vshCmdInfo
info_interface_commit
[]
=
{
static
const
vshCmdInfo
info_interface_commit
[]
=
{
{
"help"
,
N_
(
"commit changes made since iface-begin and free restore point"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"commit changes and free restore point"
)},
.
data
=
N_
(
"commit changes made since iface-begin and free restore point"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"commit changes and free restore point"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_commit
[]
=
{
static
const
vshCmdOptDef
opts_interface_commit
[]
=
{
...
@@ -696,9 +740,13 @@ cmdInterfaceCommit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
...
@@ -696,9 +740,13 @@ cmdInterfaceCommit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-rollback" command
* "iface-rollback" command
*/
*/
static
const
vshCmdInfo
info_interface_rollback
[]
=
{
static
const
vshCmdInfo
info_interface_rollback
[]
=
{
{
"help"
,
N_
(
"rollback to previous saved configuration created via iface-begin"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"rollback to previous restore point"
)},
.
data
=
N_
(
"rollback to previous saved configuration created via iface-begin"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"rollback to previous restore point"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_rollback
[]
=
{
static
const
vshCmdOptDef
opts_interface_rollback
[]
=
{
...
@@ -721,9 +769,13 @@ cmdInterfaceRollback(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
...
@@ -721,9 +769,13 @@ cmdInterfaceRollback(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-bridge" command
* "iface-bridge" command
*/
*/
static
const
vshCmdInfo
info_interface_bridge
[]
=
{
static
const
vshCmdInfo
info_interface_bridge
[]
=
{
{
"help"
,
N_
(
"create a bridge device and attach an existing network device to it"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"bridge an existing network device"
)},
.
data
=
N_
(
"create a bridge device and attach an existing network device to it"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"bridge an existing network device"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_bridge
[]
=
{
static
const
vshCmdOptDef
opts_interface_bridge
[]
=
{
...
@@ -956,9 +1008,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
...
@@ -956,9 +1008,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
* "iface-unbridge" command
* "iface-unbridge" command
*/
*/
static
const
vshCmdInfo
info_interface_unbridge
[]
=
{
static
const
vshCmdInfo
info_interface_unbridge
[]
=
{
{
"help"
,
N_
(
"undefine a bridge device after detaching its slave device"
)},
{.
name
=
"help"
,
{
"desc"
,
N_
(
"unbridge a network device"
)},
.
data
=
N_
(
"undefine a bridge device after detaching its slave device"
)
{
NULL
,
NULL
}
},
{.
name
=
"desc"
,
.
data
=
N_
(
"unbridge a network device"
)
},
{.
name
=
NULL
}
};
};
static
const
vshCmdOptDef
opts_interface_unbridge
[]
=
{
static
const
vshCmdOptDef
opts_interface_unbridge
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录