Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a8236b06
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a8236b06
编写于
2月 07, 2013
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-network.c: Switch to c99 initialization of vshCmdInfo
上级
bcd660a4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
91 addition
and
40 deletion
+91
-40
tools/virsh-network.c
tools/virsh-network.c
+91
-40
未找到文件。
tools/virsh-network.c
浏览文件 @
a8236b06
...
...
@@ -82,10 +82,13 @@ vshCommandOptNetworkBy(vshControl *ctl, const vshCmd *cmd,
* "net-autostart" command
*/
static
const
vshCmdInfo
info_network_autostart
[]
=
{
{
"help"
,
N_
(
"autostart a network"
)},
{
"desc"
,
N_
(
"Configure a network to be automatically started at boot."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"autostart a network"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Configure a network to be automatically started at boot."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_autostart
[]
=
{
...
...
@@ -136,9 +139,13 @@ cmdNetworkAutostart(vshControl *ctl, const vshCmd *cmd)
* "net-create" command
*/
static
const
vshCmdInfo
info_network_create
[]
=
{
{
"help"
,
N_
(
"create a network from an XML file"
)},
{
"desc"
,
N_
(
"Create a network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"create a network from an XML file"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Create a network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_create
[]
=
{
...
...
@@ -182,9 +189,13 @@ cmdNetworkCreate(vshControl *ctl, const vshCmd *cmd)
* "net-define" command
*/
static
const
vshCmdInfo
info_network_define
[]
=
{
{
"help"
,
N_
(
"define (but don't start) a network from an XML file"
)},
{
"desc"
,
N_
(
"Define a network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"define (but don't start) a network from an XML file"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Define a network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_define
[]
=
{
...
...
@@ -228,9 +239,13 @@ cmdNetworkDefine(vshControl *ctl, const vshCmd *cmd)
* "net-destroy" command
*/
static
const
vshCmdInfo
info_network_destroy
[]
=
{
{
"help"
,
N_
(
"destroy (stop) a network"
)},
{
"desc"
,
N_
(
"Forcefully stop a given network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"destroy (stop) a network"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Forcefully stop a given network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_destroy
[]
=
{
...
...
@@ -267,9 +282,13 @@ cmdNetworkDestroy(vshControl *ctl, const vshCmd *cmd)
* "net-dumpxml" command
*/
static
const
vshCmdInfo
info_network_dumpxml
[]
=
{
{
"help"
,
N_
(
"network information in XML"
)},
{
"desc"
,
N_
(
"Output the network information as an XML dump to stdout."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"network information in XML"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Output the network information as an XML dump to stdout."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_dumpxml
[]
=
{
...
...
@@ -319,9 +338,13 @@ cmdNetworkDumpXML(vshControl *ctl, const vshCmd *cmd)
* "net-info" command
*/
static
const
vshCmdInfo
info_network_info
[]
=
{
{
"help"
,
N_
(
"network information"
)},
{
"desc"
,
N_
(
"Returns basic information about the network"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"network information"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns basic information about the network"
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_info
[]
=
{
...
...
@@ -596,9 +619,13 @@ cleanup:
* "net-list" command
*/
static
const
vshCmdInfo
info_network_list
[]
=
{
{
"help"
,
N_
(
"list networks"
)},
{
"desc"
,
N_
(
"Returns list of networks."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"list networks"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns list of networks."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_list
[]
=
{
...
...
@@ -700,9 +727,13 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "net-name" command
*/
static
const
vshCmdInfo
info_network_name
[]
=
{
{
"help"
,
N_
(
"convert a network UUID to network name"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"convert a network UUID to network name"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_name
[]
=
{
...
...
@@ -732,9 +763,13 @@ cmdNetworkName(vshControl *ctl, const vshCmd *cmd)
* "net-start" command
*/
static
const
vshCmdInfo
info_network_start
[]
=
{
{
"help"
,
N_
(
"start a (previously defined) inactive network"
)},
{
"desc"
,
N_
(
"Start a network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"start a (previously defined) inactive network"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Start a network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_start
[]
=
{
...
...
@@ -770,9 +805,13 @@ cmdNetworkStart(vshControl *ctl, const vshCmd *cmd)
* "net-undefine" command
*/
static
const
vshCmdInfo
info_network_undefine
[]
=
{
{
"help"
,
N_
(
"undefine an inactive network"
)},
{
"desc"
,
N_
(
"Undefine the configuration for an inactive network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"undefine an inactive network"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Undefine the configuration for an inactive network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_undefine
[]
=
{
...
...
@@ -809,9 +848,13 @@ cmdNetworkUndefine(vshControl *ctl, const vshCmd *cmd)
* "net-update" command
*/
static
const
vshCmdInfo
info_network_update
[]
=
{
{
"help"
,
N_
(
"update parts of an existing network's configuration"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"update parts of an existing network's configuration"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_update
[]
=
{
...
...
@@ -987,9 +1030,13 @@ cleanup:
* "net-uuid" command
*/
static
const
vshCmdInfo
info_network_uuid
[]
=
{
{
"help"
,
N_
(
"convert a network name to network UUID"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"convert a network name to network UUID"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_uuid
[]
=
{
...
...
@@ -1024,9 +1071,13 @@ cmdNetworkUuid(vshControl *ctl, const vshCmd *cmd)
* "net-edit" command
*/
static
const
vshCmdInfo
info_network_edit
[]
=
{
{
"help"
,
N_
(
"edit XML configuration for a network"
)},
{
"desc"
,
N_
(
"Edit the XML configuration for a network."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"edit XML configuration for a network"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Edit the XML configuration for a network."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_network_edit
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录