提交 f864aac9 编写于 作者: M Martin Kletzander

schemas: finish virTristate{Bool,Switch} transition

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 ff1cc25f
......@@ -77,10 +77,7 @@
</attribute>
<optional>
<attribute name="multifunction">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
</define>
......@@ -446,4 +443,18 @@
</optional>
</define>
<define name="virYesNo">
<choice>
<value>yes</value>
<value>no</value>
</choice>
</define>
<define name="virOnOff">
<choice>
<value>on</value>
<value>off</value>
</choice>
</define>
</grammar>
......@@ -405,16 +405,10 @@
<define name='featuretoggle'>
<attribute name='toggle'>
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
<attribute name='default'>
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</define>
......
......@@ -87,10 +87,7 @@
<define name='supported'>
<attribute name='supported'>
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</define>
......
......@@ -118,10 +118,7 @@
</attribute>
<optional>
<attribute name='relabel'>
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
......@@ -282,10 +279,7 @@
<optional>
<element name="bootmenu">
<attribute name="enable">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
<optional>
<attribute name="timeout">
......@@ -584,10 +578,7 @@
<ref name='scaledInteger'/>
<optional>
<attribute name="dumpCore">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
</element>
......@@ -1012,10 +1003,7 @@
</choice>
<optional>
<attribute name="present">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<empty/>
......@@ -1265,10 +1253,7 @@
</attribute>
<optional>
<attribute name="rawio">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
......@@ -1536,10 +1521,7 @@
</optional>
<optional>
<attribute name="removable">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
</element>
......@@ -1672,26 +1654,17 @@
</define>
<define name="ioeventfd">
<attribute name="ioeventfd">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</define>
<define name="event_idx">
<attribute name="event_idx">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</define>
<define name="copy_on_read">
<attribute name='copy_on_read'>
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</define>
<define name="discard">
......@@ -2222,20 +2195,14 @@
</attribute>
<optional>
<attribute name="managed">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
<element name="source">
<optional>
<attribute name="missing">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<choice>
......@@ -2468,10 +2435,7 @@
</optional>
<optional>
<attribute name="fullscreen">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
</group>
......@@ -2488,10 +2452,7 @@
</optional>
<optional>
<attribute name="autoport">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
......@@ -2562,10 +2523,7 @@
</optional>
<optional>
<attribute name="autoport">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
......@@ -2674,10 +2632,7 @@
<optional>
<element name="playback">
<attribute name="compression">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
<empty/>
</element>
......@@ -2697,10 +2652,7 @@
<optional>
<element name="clipboard">
<attribute name="copypaste">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
<empty/>
</element>
......@@ -2719,10 +2671,7 @@
<optional>
<element name="filetransfer">
<attribute name="enable">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
<empty/>
</element>
......@@ -2740,26 +2689,17 @@
</optional>
<optional>
<attribute name="autoport">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
<attribute name="replaceUser">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
<attribute name="multiUser">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
......@@ -2780,10 +2720,7 @@
</optional>
<optional>
<attribute name="fullscreen">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
</group>
......@@ -2862,28 +2799,19 @@
</optional>
<optional>
<attribute name="primary">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
<element name="acceleration">
<optional>
<attribute name="accel3d">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
<attribute name="accel2d">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
</element>
......@@ -3009,10 +2937,7 @@
<define name="suspendChoices">
<optional>
<attribute name="enabled">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
</define>
......@@ -3104,10 +3029,7 @@
<define name="usbdevfilter">
<element name="usbdev">
<attribute name="allow">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
<optional>
<attribute name="class">
......@@ -3567,10 +3489,7 @@
</optional>
<optional>
<attribute name="managed">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<choice>
......@@ -3910,10 +3829,7 @@
<element name="apic">
<optional>
<attribute name="eoi">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
</element>
......@@ -4207,10 +4123,7 @@
<element name="bios">
<optional>
<attribute name="useserial">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
......@@ -4280,10 +4193,7 @@
<element name="rom">
<optional>
<attribute name="bar">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
<optional>
......@@ -4753,10 +4663,7 @@
<define name="featurestate">
<attribute name="state">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</define>
......
......@@ -127,7 +127,7 @@
<element name="bridge">
<optional>
<attribute name="stp">
<ref name="on-or-off"/>
<ref name="virOnOff"/>
</attribute>
</optional>
<!-- Bridge forward delay (see 'brctl setfd') -->
......@@ -376,7 +376,7 @@
<element name="dhcp">
<optional>
<attribute name="peerdns">
<ref name="yes-or-no"/>
<ref name="virYesNo"/>
</attribute>
</optional>
</element>
......@@ -415,21 +415,6 @@
instead of destination and nexthop instead of gateway.
-->
<!-- Auxiliary definitions -->
<define name="on-or-off">
<choice>
<value>on</value>
<value>off</value>
</choice>
</define>
<define name="yes-or-no">
<choice>
<value>yes</value>
<value>no</value>
</choice>
</define>
<!-- Type library -->
<define name="timeval">
......
......@@ -21,12 +21,9 @@
with no gateways addresses specified -->
<optional>
<attribute name="ipv6">
<choice>
<value>yes</value>
<value>no</value>
</choice>
</attribute>
</optional>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
<!-- The name of the network, used to refer to it through the API
......@@ -53,10 +50,7 @@
<optional>
<attribute name="stp">
<choice>
<value>on</value>
<value>off</value>
</choice>
<ref name="virOnOff"/>
</attribute>
</optional>
......@@ -104,10 +98,7 @@
<optional>
<attribute name="managed">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
......@@ -203,10 +194,7 @@
</attribute>
<optional>
<attribute name="default">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
......@@ -236,10 +224,7 @@
<element name="dns">
<optional>
<attribute name="forwardPlainNames">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
......
......@@ -377,10 +377,7 @@
<interleave>
<optional>
<attribute name="match">
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
</interleave>
......
......@@ -11,18 +11,12 @@
<element name='secret'>
<optional>
<attribute name='ephemeral'>
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<optional>
<attribute name='private'>
<choice>
<value>yes</value>
<value>no</value>
</choice>
<ref name="virYesNo"/>
</attribute>
</optional>
<interleave>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册