Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
e978774e
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,发现更多精彩内容 >>
提交
e978774e
编写于
5月 12, 2009
作者:
D
Daniel Veillard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* src/network_driver.c: enable bridges which are not up
without an IP address, patch by Ludwig Nussel Daniel
上级
6582d587
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
8 addition
and
6 deletion
+8
-6
ChangeLog
ChangeLog
+5
-0
src/network_driver.c
src/network_driver.c
+3
-6
未找到文件。
ChangeLog
浏览文件 @
e978774e
Tue May 12 17:25:52 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/network_driver.c: enable bridges which are not up, i.e.
without an IP address, patch by Ludwig Nussel
Mon May 11 16:25:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Mon May 11 16:25:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/datatypes.c: Change hash destructors to call the internal
* src/datatypes.c: Change hash destructors to call the internal
...
...
src/network_driver.c
浏览文件 @
e978774e
...
@@ -836,8 +836,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
...
@@ -836,8 +836,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
goto
err_delbr
;
goto
err_delbr
;
}
}
if
(
network
->
def
->
ipAddress
&&
if
((
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
1
)))
{
(
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
1
)))
{
virReportSystemError
(
conn
,
err
,
virReportSystemError
(
conn
,
err
,
_
(
"failed to bring the bridge '%s' up"
),
_
(
"failed to bring the bridge '%s' up"
),
network
->
def
->
bridge
);
network
->
def
->
bridge
);
...
@@ -878,8 +877,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
...
@@ -878,8 +877,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
networkRemoveIptablesRules
(
driver
,
network
);
networkRemoveIptablesRules
(
driver
,
network
);
err_delbr1:
err_delbr1:
if
(
network
->
def
->
ipAddress
&&
if
((
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
0
)))
{
(
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
0
)))
{
char
ebuf
[
1024
];
char
ebuf
[
1024
];
networkLog
(
NETWORK_WARN
,
_
(
"Failed to bring down bridge '%s' : %s
\n
"
),
networkLog
(
NETWORK_WARN
,
_
(
"Failed to bring down bridge '%s' : %s
\n
"
),
network
->
def
->
bridge
,
virStrerror
(
err
,
ebuf
,
sizeof
ebuf
));
network
->
def
->
bridge
,
virStrerror
(
err
,
ebuf
,
sizeof
ebuf
));
...
@@ -920,8 +918,7 @@ static int networkShutdownNetworkDaemon(virConnectPtr conn,
...
@@ -920,8 +918,7 @@ static int networkShutdownNetworkDaemon(virConnectPtr conn,
networkRemoveIptablesRules
(
driver
,
network
);
networkRemoveIptablesRules
(
driver
,
network
);
char
ebuf
[
1024
];
char
ebuf
[
1024
];
if
(
network
->
def
->
ipAddress
&&
if
((
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
0
)))
{
(
err
=
brSetInterfaceUp
(
driver
->
brctl
,
network
->
def
->
bridge
,
0
)))
{
networkLog
(
NETWORK_WARN
,
_
(
"Failed to bring down bridge '%s' : %s
\n
"
),
networkLog
(
NETWORK_WARN
,
_
(
"Failed to bring down bridge '%s' : %s
\n
"
),
network
->
def
->
bridge
,
virStrerror
(
err
,
ebuf
,
sizeof
ebuf
));
network
->
def
->
bridge
,
virStrerror
(
err
,
ebuf
,
sizeof
ebuf
));
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录