libvirt/docs/schemas
Laine Stump 98fa8f3ef6 conf: support host-side IP/route information in <interface>
This is place as a sub-element of <source>, where other aspects of the
host-side connection to the network device are located (network or
bridge name, udp listen port, etc). It's a bit odd that the interface
we're configuring with this info is itself named in <target dev='x'/>,
but that ship sailed long ago:

    <interface type='ethernet'>
      <mac address='00:16:3e:0f:ef:8a'/>
      <source>
        <ip address='192.168.122.12' family='ipv4'
            prefix='24' peer='192.168.122.1'/>
        <ip address='192.168.122.13' family='ipv4' prefix='24'/>
        <route family='ipv4' address='0.0.0.0'
               gateway='192.168.122.1'/>
        <route family='ipv4' address='192.168.124.0' prefix='24'
               gateway='192.168.124.1'/>
      </source>
    </interface>

In practice, this will likely only be useful for type='ethernet', so
its presence in any other type of interface is currently forbidden in
the generic device Validate function (but it's been put into the
general population of virDomainNetDef rather than the
ethernet-specific union member so that 1) we can more easily add the
capability to other types if needed, and 2) we can retain the info
when set to an invalid interface type all the way through to
validation and report a proper error, rather than just ignoring it
(which is currently what happens for many other type-specific
settings).

(NB: The already-existing configuration of IP info for the guest-side
of interfaces is in subelements directly under <interface>, and the
name of the guest-side interface (when configurable) is in <guest
dev='x'/>).

(This patch had been pushed earlier in
commit fe6a77898a, but was reverted in
commit d658456530 because it had been
accidentally pushed during the freeze for release 2.0.0)
2016-07-01 21:13:30 -04:00
..
basictypes.rng Allow custom metadata in network configuration XML 2016-07-01 13:05:25 -04:00
capability.rng domain: conf: Drop unused OSTYPE_AIX 2015-04-29 09:42:26 -04:00
domain.rng
domaincaps.rng domaincaps: Report video modelType 2016-05-09 16:05:31 -04:00
domaincommon.rng conf: support host-side IP/route information in <interface> 2016-07-01 21:13:30 -04:00
domainsnapshot.rng
interface.rng interface: allow multiple IPv4 addresses + dhcp on a single interface 2015-05-22 10:14:01 -04:00
network.rng Allow custom metadata in network configuration XML 2016-07-01 13:05:25 -04:00
networkcommon.rng schema: rename uint8range/uint24range to uint8/uint24 2016-04-14 14:00:33 -04:00
nodedev.rng schemas: Update nodedev schema to match reality 2016-05-02 15:46:23 +02:00
nwfilter.rng schema: rename uint8range/uint24range to uint8/uint24 2016-04-14 14:00:33 -04:00
secret.rng conf: Add new secret type "passphrase" 2016-07-01 15:45:41 -04:00
storagecommon.rng encryption: Add <cipher> and <ivgen> to encryption 2016-07-01 15:46:57 -04:00
storagepool.rng conf: Add storage pool device attribute part_separator 2016-01-19 13:02:59 -05:00
storagevol.rng