Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
b2621046
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看板
提交
b2621046
编写于
12年前
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-network.c: Switch to C99 initialization of vshCmdOptDef
上级
d5438418
无相关合并请求
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
149 addition
and
44 deletion
+149
-44
tools/virsh-network.c
tools/virsh-network.c
+149
-44
未找到文件。
tools/virsh-network.c
浏览文件 @
b2621046
...
...
@@ -89,9 +89,17 @@ static const vshCmdInfo info_network_autostart[] = {
};
static
const
vshCmdOptDef
opts_network_autostart
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
"disable"
,
VSH_OT_BOOL
,
0
,
N_
(
"disable autostarting"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
"disable"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"disable autostarting"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -134,8 +142,12 @@ static const vshCmdInfo info_network_create[] = {
};
static
const
vshCmdOptDef
opts_network_create
[]
=
{
{
"file"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"file containing an XML network description"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"file"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"file containing an XML network description"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -176,8 +188,12 @@ static const vshCmdInfo info_network_define[] = {
};
static
const
vshCmdOptDef
opts_network_define
[]
=
{
{
"file"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"file containing an XML network description"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"file"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"file containing an XML network description"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -218,8 +234,12 @@ static const vshCmdInfo info_network_destroy[] = {
};
static
const
vshCmdOptDef
opts_network_destroy
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -253,9 +273,17 @@ static const vshCmdInfo info_network_dumpxml[] = {
};
static
const
vshCmdOptDef
opts_network_dumpxml
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
"inactive"
,
VSH_OT_BOOL
,
VSH_OFLAG_NONE
,
N_
(
"network information of an inactive domain"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
"inactive"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"network information of an inactive domain"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -297,8 +325,12 @@ static const vshCmdInfo info_network_info[] = {
};
static
const
vshCmdOptDef
opts_network_info
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -570,13 +602,37 @@ static const vshCmdInfo info_network_list[] = {
};
static
const
vshCmdOptDef
opts_network_list
[]
=
{
{
"inactive"
,
VSH_OT_BOOL
,
0
,
N_
(
"list inactive networks"
)},
{
"all"
,
VSH_OT_BOOL
,
0
,
N_
(
"list inactive & active networks"
)},
{
"persistent"
,
VSH_OT_BOOL
,
0
,
N_
(
"list persistent networks"
)},
{
"transient"
,
VSH_OT_BOOL
,
0
,
N_
(
"list transient networks"
)},
{
"autostart"
,
VSH_OT_BOOL
,
0
,
N_
(
"list networks with autostart enabled"
)},
{
"no-autostart"
,
VSH_OT_BOOL
,
0
,
N_
(
"list networks with autostart disabled"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"inactive"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list inactive networks"
)
},
{.
name
=
"all"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list inactive & active networks"
)
},
{.
name
=
"persistent"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list persistent networks"
)
},
{.
name
=
"transient"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list transient networks"
)
},
{.
name
=
"autostart"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list networks with autostart enabled"
)
},
{.
name
=
"no-autostart"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list networks with autostart disabled"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -650,8 +706,12 @@ static const vshCmdInfo info_network_name[] = {
};
static
const
vshCmdOptDef
opts_network_name
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network uuid"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -678,8 +738,12 @@ static const vshCmdInfo info_network_start[] = {
};
static
const
vshCmdOptDef
opts_network_start
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -712,8 +776,12 @@ static const vshCmdInfo info_network_undefine[] = {
};
static
const
vshCmdOptDef
opts_network_undefine
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -747,19 +815,48 @@ static const vshCmdInfo info_network_update[] = {
};
static
const
vshCmdOptDef
opts_network_update
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
"command"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"type of update (add-first, add-last (add), delete, or modify)"
)},
{
"section"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"which section of network configuration to update"
)},
{
"xml"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"name of file containing xml (or, if it starts with '<', the complete "
"xml element itself) to add/modify, or to be matched for search"
)},
{
"parent-index"
,
VSH_OT_INT
,
0
,
N_
(
"which parent object to search through"
)},
{
"config"
,
VSH_OT_BOOL
,
0
,
N_
(
"affect next network startup"
)},
{
"live"
,
VSH_OT_BOOL
,
0
,
N_
(
"affect running network"
)},
{
"current"
,
VSH_OT_BOOL
,
0
,
N_
(
"affect current state of network"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
"command"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"type of update (add-first, add-last (add), delete, or modify)"
)
},
{.
name
=
"section"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"which section of network configuration to update"
)
},
{.
name
=
"xml"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"name of file containing xml (or, if it starts with '<', the complete "
"xml element itself) to add/modify, or to be matched for search"
)
},
{.
name
=
"parent-index"
,
.
type
=
VSH_OT_INT
,
.
flags
=
0
,
.
help
=
N_
(
"which parent object to search through"
)
},
{.
name
=
"config"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"affect next network startup"
)
},
{.
name
=
"live"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"affect running network"
)
},
{.
name
=
"current"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"affect current state of network"
)
},
{.
name
=
NULL
}
};
VIR_ENUM_DECL
(
virNetworkUpdateCommand
)
...
...
@@ -901,8 +998,12 @@ static const vshCmdInfo info_network_uuid[] = {
};
static
const
vshCmdOptDef
opts_network_uuid
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -934,8 +1035,12 @@ static const vshCmdInfo info_network_edit[] = {
};
static
const
vshCmdOptDef
opts_network_edit
[]
=
{
{
"network"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"network name or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"network"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"network name or uuid"
)
},
{.
name
=
NULL
}
};
static
char
*
vshNetworkGetXMLDesc
(
virNetworkPtr
network
)
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部