Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
c5a9e6a9
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,发现更多精彩内容 >>
提交
c5a9e6a9
编写于
5月 15, 2018
作者:
L
Lin Ma
提交者:
Michal Privoznik
5月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-network: Add macro VIRSH_COMMON_OPT_NETWORK_FULL
Signed-off-by:
N
Lin Ma
<
lma@suse.com
>
上级
27631eac
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
14 addition
and
11 deletion
+14
-11
tools/virsh-network.c
tools/virsh-network.c
+14
-11
未找到文件。
tools/virsh-network.c
浏览文件 @
c5a9e6a9
...
...
@@ -34,15 +34,18 @@
#include "virtime.h"
#include "conf/network_conf.h"
#define VIRSH_COMMON_OPT_NETWORK(cflags) \
#define VIRSH_COMMON_OPT_NETWORK(
_helpstr,
cflags) \
{.name = "network", \
.type = VSH_OT_DATA, \
.flags = VSH_OFLAG_REQ, \
.help =
N_("network name or uuid")
, \
.help =
_helpstr
, \
.completer = virshNetworkNameCompleter, \
.completer_flags = cflags, \
}
#define VIRSH_COMMON_OPT_NETWORK_FULL(cflags) \
VIRSH_COMMON_OPT_NETWORK(N_("network name or uuid"), cflags)
#define VIRSH_COMMON_OPT_NETWORK_OT_STRING(_helpstr, cflags) \
{.name = "network", \
.type = VSH_OT_STRING, \
...
...
@@ -106,7 +109,7 @@ static const vshCmdInfo info_network_autostart[] = {
};
static
const
vshCmdOptDef
opts_network_autostart
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
VIR_CONNECT_LIST_NETWORKS_PERSISTENT
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
VIR_CONNECT_LIST_NETWORKS_PERSISTENT
),
{.
name
=
"disable"
,
.
type
=
VSH_OT_BOOL
,
.
help
=
N_
(
"disable autostarting"
)
...
...
@@ -253,7 +256,7 @@ static const vshCmdInfo info_network_destroy[] = {
};
static
const
vshCmdOptDef
opts_network_destroy
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
VIR_CONNECT_LIST_NETWORKS_ACTIVE
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
VIR_CONNECT_LIST_NETWORKS_ACTIVE
),
{.
name
=
NULL
}
};
...
...
@@ -292,7 +295,7 @@ static const vshCmdInfo info_network_dumpxml[] = {
};
static
const
vshCmdOptDef
opts_network_dumpxml
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
0
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
0
),
{.
name
=
"inactive"
,
.
type
=
VSH_OT_BOOL
,
.
help
=
N_
(
"show inactive defined XML"
)
...
...
@@ -343,7 +346,7 @@ static const vshCmdInfo info_network_info[] = {
};
static
const
vshCmdOptDef
opts_network_info
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
0
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
0
),
{.
name
=
NULL
}
};
...
...
@@ -792,7 +795,7 @@ static const vshCmdInfo info_network_start[] = {
};
static
const
vshCmdOptDef
opts_network_start
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
VIR_CONNECT_LIST_NETWORKS_INACTIVE
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
VIR_CONNECT_LIST_NETWORKS_INACTIVE
),
{.
name
=
NULL
}
};
...
...
@@ -830,7 +833,7 @@ static const vshCmdInfo info_network_undefine[] = {
};
static
const
vshCmdOptDef
opts_network_undefine
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
VIR_CONNECT_LIST_NETWORKS_PERSISTENT
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
VIR_CONNECT_LIST_NETWORKS_PERSISTENT
),
{.
name
=
NULL
}
};
...
...
@@ -869,7 +872,7 @@ static const vshCmdInfo info_network_update[] = {
};
static
const
vshCmdOptDef
opts_network_update
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
0
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
0
),
{.
name
=
"command"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
...
...
@@ -1070,7 +1073,7 @@ static const vshCmdInfo info_network_edit[] = {
};
static
const
vshCmdOptDef
opts_network_edit
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
0
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
0
),
{.
name
=
NULL
}
};
...
...
@@ -1314,7 +1317,7 @@ static const vshCmdInfo info_network_dhcp_leases[] = {
};
static
const
vshCmdOptDef
opts_network_dhcp_leases
[]
=
{
VIRSH_COMMON_OPT_NETWORK
(
0
),
VIRSH_COMMON_OPT_NETWORK
_FULL
(
0
),
{.
name
=
"mac"
,
.
type
=
VSH_OT_STRING
,
.
flags
=
VSH_OFLAG_NONE
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录