Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
20e64d34
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看板
提交
20e64d34
编写于
12月 13, 2016
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
schema: Let elements in /network/ip be specified in any order
Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
a81cfb64
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
39 deletion
+43
-39
docs/schemas/network.rng
docs/schemas/network.rng
+41
-37
tests/networkxml2confdata/dhcp6-nat-network.xml
tests/networkxml2confdata/dhcp6-nat-network.xml
+1
-1
tests/networkxml2confdata/netboot-network.xml
tests/networkxml2confdata/netboot-network.xml
+1
-1
未找到文件。
docs/schemas/network.rng
浏览文件 @
20e64d34
...
...
@@ -339,48 +339,52 @@
<optional>
<attribute
name=
"family"
><ref
name=
"addr-family"
/></attribute>
</optional>
<
optional
>
<
element
name=
"tftp"
>
<
attribute
name=
"root"
><text/></attribute
>
</element
>
</optional
>
<
optional>
<
!-- Define the range(s) of IP addresses that the DHCP
server should hand out -->
<element
name=
"dhcp"
>
<
zeroOrMore
>
<
element
name=
"range"
>
<
attribute
name=
"start"
><ref
name=
"ipAddr"
/></attribut
e>
<attribute
name=
"end"
><ref
name=
"ipAddr"
/></attribute
>
</element
>
</zeroOrMor
e>
<zeroOrMore
>
<element
name=
"host"
>
<
choic
e>
<
group
>
<
interleave
>
<
optional
>
<
element
name=
"tftp"
>
<attribute
name=
"root"
><text/></attribute
>
</element
>
</
optional>
<
optional>
<!-- Define the range(s) of IP addresses that the DHCP
server should hand out --
>
<
element
name=
"dhcp"
>
<
interleave
>
<
zeroOrMor
e>
<element
name=
"range"
>
<attribute
name=
"start"
><ref
name=
"ipAddr"
/></attribute
>
<attribute
name=
"end"
><ref
name=
"ipAddr"
/></attribut
e>
</element
>
</zeroOrMore
>
<
zeroOrMor
e>
<
element
name=
"host"
>
<choice>
<attribute
name=
"mac"
><ref
name=
"uniMacAddr"
/></attribute>
<attribute
name=
"id"
><ref
name=
"DUID"
/></attribute>
<group>
<choice>
<attribute
name=
"mac"
><ref
name=
"uniMacAddr"
/></attribute>
<attribute
name=
"id"
><ref
name=
"DUID"
/></attribute>
</choice>
<optional>
<attribute
name=
"name"
><text/></attribute>
</optional>
</group>
<attribute
name=
"name"
><text/></attribute>
</choice>
<attribute
name=
"ip"
><ref
name=
"ipAddr"
/></attribute>
</element>
</zeroOrMore>
<optional>
<element
name=
"bootp"
>
<attribute
name=
"file"
><ref
name=
"filePath"
/></attribute>
<optional>
<attribute
name=
"
name"
><text
/></attribute>
<attribute
name=
"
server"
><ref
name=
"dnsName"
/></attribute>
</optional>
</group>
<attribute
name=
"name"
><text/></attribute>
</choice>
<attribute
name=
"ip"
><ref
name=
"ipAddr"
/></attribute>
</element>
</zeroOrMore>
<optional>
<element
name=
"bootp"
>
<attribute
name=
"file"
><ref
name=
"filePath"
/></attribute>
<optional>
<attribute
name=
"server"
><ref
name=
"dnsName"
/></attribute>
</element>
</optional>
</
element
>
</
optional
>
</
element
>
</
optional
>
</
interleave
>
</
element
>
</
optional
>
</
interleave
>
</element>
</zeroOrMore>
<!-- <route> element -->
...
...
tests/networkxml2confdata/dhcp6-nat-network.xml
浏览文件 @
20e64d34
...
...
@@ -5,9 +5,9 @@
<bridge
name=
'virbr0'
stp=
'on'
delay=
'0'
/>
<ip
address=
'192.168.122.1'
netmask=
'255.255.255.0'
>
<dhcp>
<range
start=
'192.168.122.2'
end=
'192.168.122.254'
/>
<host
mac=
'00:16:3e:77:e2:ed'
name=
'a.example.com'
ip=
'192.168.122.10'
/>
<host
mac=
'00:16:3e:3e:a9:1a'
name=
'b.example.com'
ip=
'192.168.122.11'
/>
<range
start=
'192.168.122.2'
end=
'192.168.122.254'
/>
</dhcp>
</ip>
<ip
family=
'ipv4'
address=
'192.168.123.1'
netmask=
'255.255.255.0'
>
...
...
tests/networkxml2confdata/netboot-network.xml
浏览文件 @
20e64d34
...
...
@@ -5,10 +5,10 @@
<bridge
name=
'virbr1'
stp=
'off'
delay=
'1'
/>
<domain
name=
'example.com'
/>
<ip
address=
'192.168.122.1'
netmask=
'255.255.255.0'
>
<tftp
root=
'/var/lib/tftproot'
/>
<dhcp>
<range
start=
'192.168.122.2'
end=
'192.168.122.254'
/>
<bootp
file=
'pxeboot.img'
/>
</dhcp>
<tftp
root=
'/var/lib/tftproot'
/>
</ip>
</network>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录